They were constructed in the 13th century during the Marinid dynasty's domination of the region.
The walls were declared Bien de Interés Cultural in 1985.
[1] 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 the western flank remains, with about 500 meters, several bastions and two twin towers that frame the so-called Puerta de Fez.
You can help Wikipedia by expanding it.This article about Spain's autonomous north African cities or Plazas de soberanía is a stub.