Part 2 · Town, walls and gates
The Moorish Castle and the Tower of Homage
A pale, battered keep on the slope above the town, built mainly in the 14th century on a site first fortified after the Moorish landing of 711, and marked by every siege since.

i
Prioryman, CC BY-SA 3.0From almost anywhere in the lower town you can look up and see it: a square, pale tower on the slope, its walls stained and pitted, a flag on the roof and the Rock rising behind. This is the Tower of Homage, the keep of the Moorish Castle, and it is the oldest large building in Gibraltar still standing to its full height. It is also a good place to begin any walk through the Rock's military history, because nearly every chapter of that history has left a mark on it.
Jabal Tariq: the first fortress
In 711 a Muslim army under Tariq ibn Ziyad crossed the Strait from North Africa and landed at the Rock. It was the start of the conquest of most of the Iberian Peninsula, and it gave the place its name: Jabal Tariq, the mountain of Tariq, became Gibraltar. A fortification of some kind followed the landing, and over the following centuries the Moorish rulers of the region built and rebuilt defences on this slope, where the north face of the Rock protected their backs and the bay lay open below.
The castle you see is the product of that long process. It was never a single building but a walled complex stretching from the high ground down towards the sea, with towers, gates and walls enclosing a sizeable area of what is now the upper town. Much of the lower part has gone or been built over, but sections of wall still run down the hill, and the line of the old enclosure can be traced on foot through the steep streets.

i
Yair Haklai, CC BY-SA 4.0The Tower of Homage
The keep dates mainly from the 14th century. Gibraltar changed hands more than once in that period between the Christian kingdom of Castile and the Muslim rulers of Granada and Morocco, and the tower is generally linked to the rebuilding of the defences after the Moorish recapture of the Rock in 1333. It is a massive, almost windowless block of masonry, built to be held by a small garrison against an enemy that had already taken the rest of the town.
Look at the surface of the walls and you see the history at once. The stone is pocked with shallow craters, chips and gouges, some small, some the size of a fist or larger. These are the scars of artillery and small-arms fire from the sieges of Gibraltar, usually counted as fourteen, which followed one another from the Middle Ages into the 18th century. Few buildings anywhere show their battle damage so openly.

i
Allie_Caulfield from Germany, CC BY 2.0Near the top, small barred windows and crenellations break the line of the walls. The flag on the roof is a reminder that the castle has stood under several crowns: Moorish, Castilian, Spanish and, since 1704, British.
Inside the keep
When the castle is open, you can go inside parts of the keep and climb towards the roof. The rooms are bare and cool, with thick walls and small openings. In places the ceilings are vaulted, the ribs meeting in a star at the centre: a sign of the care that went into a building whose main purpose was to resist.

i
Ymblanter, CC BY-SA 4.0The roof terraces are the reward. Square merlons with pointed caps frame the view across the bay to Algeciras and the mountains beyond, and the harbour and the town spread out directly below. From here it is easy to see why the site was chosen: anyone approaching by sea or along the shore could be watched for hours before arriving.
See also, part 41704 and 1727: how the Rock changed hands
i
Ymblanter, CC BY-SA 4.0Sieges, surrender and the prison years
The castle played its part in the long contest for the Rock. Castile finally took Gibraltar in 1462, and for more than two centuries the castle was part of the Spanish town's defences. In 1704 an Anglo-Dutch force under Admiral Sir George Rooke captured Gibraltar in the War of the Spanish Succession; the story of that summer, and of the townspeople who left for San Roque, is told in 1704 and 1727: how the Rock changed hands.
Under British rule the castle's role changed. The fighting moved north and south, to the batteries on the cliffs and later to the galleries of the Great Siege Tunnels higher up the same slope. Part of the castle complex became Gibraltar's prison and stayed one into the early 21st century, when a new prison was built elsewhere on the Rock. For generations, then, this oldest of fortresses was a place few people entered by choice.
That long use is one reason so much of the castle survives. A building that is occupied is a building that is maintained, even if its occupants would rather have been somewhere else. It also explains why the castle can feel austere today: its rooms were stripped and adapted again and again, and little of the furniture of any period remains.
The walk up and what to combine
The castle sits on the slope above Main Street, reached on foot by steep lanes and steps from the town or by the road that continues up towards the Upper Rock. From Grand Casemates Square it takes around fifteen minutes, all of it uphill. The streets are narrow and some have traffic, so walk on the side and take your time in the heat.
Entry arrangements have changed over the years and the castle is often linked with the Upper Rock Nature Reserve ticket. Barbary macaques sometimes come down this far. Never feed or touch them, keep food and bags closed, and remember that feeding them is an offence in Gibraltar.

i
Brian McConnell, CC BY-SA 2.0The castle combines well with the climb to the Great Siege Tunnels, which continues up Willis's Road from just above it. Going the other way, you can drop down through the old town to Grand Casemates and the National Museum, where the Moorish baths add another piece to the story of the Rock before 1462.
Few buildings anywhere show their battle damage so openly.
Reading the castle from below
Once you have climbed up, look back at the keep from the lower town. Its size makes more sense when you know the walls once ran all the way down the slope. Its colour, a patchy cream and grey, comes from centuries of repair, limewash and weather. And its scars tell you that, for all the later concrete and tunnelling, the oldest way of holding Gibraltar was simply to build a tower thick enough to stand when everything else had fallen.