The Castle of the Moors is a hilltop medieval castle built by the Moors in the 8th and 9th centuries. It was an important strategic point during the Reconquista, and was taken by Christian forces after the fall of Lisbon in 1147. It is classified as a National Monument, part of the Sintra Cultural Landscape, a UNESCO World Heritage Site.
During the second half of the 12th century, the chapel constructed within the walls of the castle became the parish seat. This was followed by the remodelling and construction under the initiative of King Sancho I of Portugal. In 1375 King Ferdinand I of Portugal, under the counsel of João Annes de Almada, ordered the rebuilding of the castle. While the structure was well fortified by 1383, its military importance was progressively diminishing as, more and more, the inhabitants were abandoning the castle for the old village of Sintra.
By 1493 this chapel was abandoned and later only used by the small Jewish community of the parish. The Jews occupying and using the structures in the castle were expelled by Manuel I of Portugal, and the castle was completely abandoned.
The 1755 Lisbon earthquake caused considerable damage to the chapel and affected the stability of the castle. By 1838 the towers were already in ruins, when in 1840 Ferdinand II of Portugal took up the task of conserving and improving the condition of the castle.
References:Doune Castle was originally built in the thirteenth century, then probably damaged in the Scottish Wars of Independence, before being rebuilt in its present form in the late 14th century by Robert Stewart, Duke of Albany (c. 1340–1420), the son of King Robert II of Scots, and Regent of Scotland from 1388 until his death. Duke Robert"s stronghold has survived relatively unchanged and complete, and the whole castle was traditionally thought of as the result of a single period of construction at this time. The castle passed to the crown in 1425, when Albany"s son was executed, and was used as a royal hunting lodge and dower house.
In the later 16th century, Doune became the property of the Earls of Moray. The castle saw military action during the Wars of the Three Kingdoms and Glencairn"s rising in the mid-17th century, and during the Jacobite risings of the late 17th century and 18th century.