They were used as a citadel, shelter for troops that were forced to spend the night outside the medieval city. Of the original 1,500 meters of primitive construction, today only remains the western flank, with about 500 meters, several bastions and two twin towers that frame the so-called Puerta de Fez.[2]