The Moorish Castle is the name given to a medieval fortification in Gibraltar comprising various buildings, gates, and fortified walls, with the dominant features being the Tower of Homage and the Gate House. Although sometimes compared to the nearby alcazars in Spain, the Moorish Castle in Gibraltar was constructed by the Marinid dynasty, making it unique in the Iberian Peninsula.
The Moorish occupation is by far the longest in Gibraltar's recorded history, having lasted from 711 to 1309 and then again from 1333 to 1462, a total of 727 years.
Construction of the Moorish Castle commenced in the 8th century AD. Its walls enclosed a considerable area, reaching down from the upper part of the Rock of Gibraltar to the sea. The most conspicuous remaining parts of the Castle are the upper tower, or Tower of Homage, together with various terraces and battlements below it, and the massive Gate House, with its cupola roof.
The present Tower of Homage, and most of what is visible today of the Castle, was rebuilt during the second Moorish period of occupation in the early 14th century, after its near destruction during a reconquest of Gibraltar by the Moors following a re-occupation by Spanish forces from 1309 to 1333.
References:Trenčín Castle is relatively large renovated castle, towering on a steep limestone cliff directly above the city of Trenčín. It is a dominant feature not only of Trenčín, but also of the entire Považie region. The castle is a national monument.
History of the castle cliff dates back to the Roman Empire, what is proved by the inscription on the castle cliff proclaiming the victory of Roman legion against Germans in the year 179.
Today’s castle was probably built on the hill-fort. The first proven building on the hill was the Great Moravian rotunda from the 9th century and later there was a stone residential tower, which served to protect the Kingdom of Hungary and the western border. In the late 13th century the castle became a property of Palatine Matúš Csák, who became Mr. of Váh and Tatras.
Matúš Csák of Trenčín built a tower, still known as Matthew’s, which is a dominant determinant of the whole building.