NextOnTrip

Castillo Mayor

Calatayud, Spain

About this place

Castillo Mayor is the hilltop fortress that watches over Calatayud in Aragón, and it holds a rare distinction: among Muslim-era fortifications on the Iberian Peninsula, few are older or better preserved. Perched above the Jalón river valley, it once anchored a whole network of defensive works whose Arabic name gave the modern town its own.

Why does Calatayud sound like it borrows the castle's name?

It does, literally. The stronghold was originally called Qalat Ayyub, "Ayyub's castle," and centuries of linguistic drift turned that into Calatayud. Medieval chronicler Bishop Jiménez de Rada, writing in the 13th century, credited the founding to Ayyub ben Habib al-Hajmi, an early emir of Al-Andalus, and dated it to 716, right after the Muslim conquest of the peninsula. Modern historians treat that origin story cautiously — it comes from chronicle tradition rather than contemporary record — but the name itself is the clearest surviving proof of the connection.

When was the castle actually built up into what stands today?

The decisive building phase is better documented: in 862, the Emir of Córdoba, Muhammad I, ordered the fortifications of Calatayud strengthened to contain a revolt by the Banu Qasi lords who controlled Zaragoza. Most of what visitors can still trace on the hill — wall lines, defensive footprint — dates from this 9th-century campaign, which is why the site is frequently cited as one of the oldest surviving pieces of Muslim military architecture anywhere in Spain.

Was Castillo Mayor a single castle or part of something bigger?

Bigger, by far. The original town wall, raised in the first half of the 9th century, wrapped around the whole settlement and tied together several strongholds at once: Castillo Mayor itself, the Torre Mocha, the Castillo de Doña Martina, and the Castillo Real, with a further outpost, the Castillo de la Peña, standing apart as an advanced lookout. Taken together, this layered defensive system ranks among the most elaborate to survive from the Islamic period on the peninsula — Castillo Mayor was simply its high point, both literally and strategically.

How did the castle pass into Christian hands?

Muslim control ended in 1120. Alfonso I of Aragón, known as El Batallador, laid siege to Calatayud two years after taking Zaragoza. The town surrendered once word arrived that Almoravid forces had been defeated at the Battle of Cutanda, cutting off any realistic hope of relief. From that point the castle and the town it protected became part of the Kingdom of Aragón.

What can visitors actually see on site today?

What remains is mostly wall fragments and the commanding silhouette of the hill itself, visible from much of Calatayud below. Climbing up rewards visitors with a clear read of the old town's layout and the Jalón valley beyond, and the position — sitting at the junction of the old defensive lines — makes it easy to understand why this spot mattered so much for controlling the middle Ebro valley during centuries of Islamic rule.

Frequently asked questions

Is Castillo Mayor the same place as Castillo de Ayyub? Yes. Both names refer to the same hilltop fortress above Calatayud; guides and historical sources use them interchangeably.

How old is the castle? Its documented building phase goes back to the 9th century, and chronicle tradition pushes the founding story as far back as 716, making it one of the oldest Muslim-era defensive sites in Spain.

Should a visit include the rest of the town's fortifications? It's worth it. Castillo Mayor was only the centerpiece of a larger fortified network, so seeing how it once connected to the Torre Mocha, Doña Martina, and Castillo Real gives a fuller picture than the main castle alone.

Where exactly is it located? The hill sits directly above the center of Calatayud, in Aragón's Zaragoza province, and its outline is visible from most points in the old town.

Nearby places

Earn badges for the places you visit

Download NextOnTrip, discover new places and check off your trails.