Calatayud's fortress complex represents some of the oldest preserved Islamic military architecture in the Iberian Peninsula, dating to the 9th century with its iconic Ayyub Castle built circa 884–885 CE. The fortress, which gave the town its name meaning 'fortress of Ayyub' in Arabic, originally consisted of vast structures with two terraced areas, drawbridges, and defensive configurations spanning approximately 100 by 50 meters. Though largely in ruins, the site retains three octagonal towers and significant wall sections constructed from rammed earth and stone. The broader fortification complex once included four additional castles, representing a significant strategic center of Islamic Spain.