Quick answer
The Castle of the Moors was built by North African Muslims during the 8th and 9th centuries as a defensive stronghold above the Tagus estuary approaches. It was taken by Christian forces under Afonso Henriques in 1147, fell into disuse after the 15th century, and was partially restored under King Ferdinand II in the 19th century. It has been a protected monument since 1910.
The Castle of the Moors began as a military watchtower system, not a palatial residence. Its builders quarried the same granite outcrops they were fortifying, embedding boulders directly into the curtain walls — a construction logic that allowed a small garrison to defend terrain that would otherwise require many more soldiers. That integration of natural rock and masonry is the fortress's most distinctive structural feature and one that sets sintra castle history apart from the inland fortifications of the same period. Afonso Henriques, the first king of Portugal, captured the castle in 1147 as part of a broader campaign to push Muslim rule south toward Lisbon and the Alentejo. The conquest transferred the fortification to Christian hands but did not transform its function: it continued to serve as a military signal post through the 12th and 13th centuries. As the Reconquista advanced and the strategic frontier moved further south, the castle's value declined. By the 15th century it was largely abandoned, its cisterns silted and its towers crumbling. The structure that visitors walk today owes its current form significantly to 19th-century intervention. King Ferdinand II of Portugal — the same monarch who built the Pena Palace on the adjacent peak — commissioned clearance and partial rebuilding works from the 1840s onward. His Romantic-era restoration philosophy preserved the ruin's character rather than reconstructing a functioning fortress, which is why the walls feel genuinely weathered rather than artificially pristine. The Moorish gate, the royal tower, and the barbican all carry fabric from multiple centuries. In 1995, the entire Cultural Landscape of Sintra received UNESCO World Heritage designation, placing the Castle of the Moors within a protected zone that includes the Pena Palace, the National Palace of Sintra, and the Quinta da Regaleira. That designation reflects how sintra castle history cannot be read in isolation: the ridge, the humidity, the Atlantic forest, and the density of monuments together form the heritage value that UNESCO recognised. Visitors climbing the roughly 300 steps to the highest walls are, in effect, moving through a compressed archaeology of Iberian history — from early medieval Islamic military engineering through Portuguese kingship to 19th-century European Romanticism, all within a few hundred metres of granite walkway.
“The builders of the Castle of the Moors did not impose a fortress on the landscape — they grew one out of it.”
The Comprehensive Sintra Castle History from Moorish Foundations to Reconquest
The sintra castle history begins in the 8th and 9th centuries, when North African Moorish populations established a fortified position on the granite ridges above what is now Sintra. These settlers, part of the broader Umayyad expansion into the Iberian Peninsula, chose the site for its commanding elevation over the Atlantic approaches and the fertile Tagus plain below. The walls they raised followed the natural contours of the rock, anchoring towers into outcrops that made the fortification as much geology as masonry. Through the 10th and 11th centuries, the Castelo dos Mouros served as a strategic military post within the Taifa kingdoms that emerged after the fragmentation of Moorish Iberia. Its garrison controlled movement along the coastal corridor between Lisbon and the western shores, and the cisterns cut into the bedrock allowed the fort to withstand extended sieges. The site was not a palace or administrative seat — it was a pure instrument of military geography, designed to hold ground and deny passage. The decisive rupture in this Moorish heritage came in 1147, when Afonso Henriques, the first king of Portugal, captured the castle during his campaign to take Lisbon with the aid of Northern European crusaders. The fall of the Castelo dos Mouros effectively secured the northern flank of that larger siege and marked the definitive end of Islamic military presence in the Sintra hills. Control passed to the Christian Portuguese crown, and the castle's role as an active fortification gradually declined over the following centuries. For anyone tracing Sintra castle history across the landscape, the walls that survive today are substantially the Moorish fabric — repaired and partially reconstructed during 19th-century Romantic-era interventions by King Ferdinand II, but still tracing the lines those 8th-century builders chose. Walking the ramparts, visitors move along one of the oldest pieces of Iberian military architecture still standing in the region.
Moorish settlers of North African origin construct the first fortifications on the granite ridge above Sintra.
The castle functions as a military post within the shifting Taifa kingdoms, its cisterns enabling prolonged defence.
Afonso Henriques captures the Castelo dos Mouros during the Reconquista campaign that also takes Lisbon.
Under Portuguese crown control the fortress declines in military importance as Lisbon is consolidated.
King Ferdinand II commissions Romantic-era restoration work, reinforcing sections of the Moorish walls that had collapsed.
Architectural Highlights of Sintra Castle History Worth Exploring
Explore the structural remnants and defensive fortifications that shaped the historical defenses of the Castle of the Moors.
Royal Tower
Climb this elevated tower for panoramic views of the surrounding hills and the distant Pena Palace.
Climb early for clear views.
Defensive Walls
Walk the stone ramparts that curve along the steep granite ridge of the mountain crest.
Watch footing on uneven steps.
Moorish Cistern
Inspect the large subterranean vaulted water reservoir built to sustain the garrison during sieges.
Look inside the stone archway.
Church of São Pedro de Canaferrim
View the medieval Romanesque ruins constructed within the castle walls following the Christian conquest.
Notice the ancient stone arches.
Check availability
Frequently asked questions about sintra castle history
Everything you need to know about sintra castle history