South of the square, through the medina, is this 17th-century fortification built by the Spaniards under Philip III. Unfortunately, the building is not open to visitors.