People have fought over the occupation of Gibraltar for centuries. In the last two millennia the Moors, the Spanish and the British have all had a foothold on the Rock, lured by its strategic location at the entrance to (or exit from) the Mediterranean. Defending the peninsula was always a priority, so it is not surprising that it should be riddled with walls and other fortifications.

Moorish Castle, Gibraltar

The fortifications of Gibraltar date from different periods – here the 12th century Moorish Castle and a 18th century British battery

Moorish Fortifications of Gibraltar

The Moors held Gibraltar almost continuously from 711 AD until the Spanish conquered the Rock in 1492. Most of their effort went into protecting the northern part of the peninsula, the narrow strip of land between Gibraltar and Spain. To this end they constructed the Northern Walls and what is now known as the Moorish Castle. Built in the 12th century, the Moorish Castle was a massive fortress running down the side of the rock all the way to what is now Casemates Square.

Moorish Castle, Gibraltar

The keep of the Moorish Castle has a commanding view of the town and the sea

The keep of the fortress (also known as the “Tower of Homage”) had a commanding view of the town below and of the northern border. Today you can visit and climb up to the top of the keep. You’ll get the same view as the Rock’s early defenders, and you can appreciate what a good vantage point this was.

To the north you can also walk through the Landport Gate, for many centuries the only way into the town of Gibraltar by land (all the other entrances were from the sea). The current Landport Gate dates from 1729, but earlier gates on the same site go back at least to the 15th century and probably earlier.

Landport Gate, Gibraltar

The Landport Gate was once the only way into the town of Gibraltar

Spanish Defences

The Spanish defences concentrated more on the sea, particularly after an attack by Moorish pirates in the 16th century. The Emperor Charles V built a wall from the southern end of the town almost to the top of the rock, and his successor Philip II of Spain made a second wall very close to this one. You can still see the Charles V wall snaking up the hill, and in some places you can walk along or through it.

Charles V Wall, Gibraltar

The Charles V Wall goes almost to the top of the Rock

The Spanish also created new bastions and sea walls on the western side of the peninsula. These were to defend the town on the lower slopes of the Rock where virtually all of Gibraltar’s population lived. The eastern side was considered impregnable, being a sheer rockface with little or no land at its base.

Rock of Gibraltar

The east face of the Rock still looks forbidding today!

British Fortifications and the Line Wall

The British occupied Gibraltar following the Treaty of Utrecht in 1713. More so than their Moorish and Spanish predecessors, they were vulnerable to attack from all directions. They set about strengthening the existing defences, extending and reinforcing the walls and fortifications. Bastions and batteries were created on the northern land border, and they built clifftop fortifications and artillery lines to guard against any attack from the east.

Line Wall, Gibraltar

The Line Wall incorporates structures from different periods

The Line Wall was built along the western coast in the 1770s. This incorporated earlier structures and included bastions and gates giving access from the sea. Gibraltar’s defences were extended in the 19th and 20th centuries, with new installations and structures such as the Parson’s Lodge fortress at the naval harbour of Rosia Bay.

Parson's Lodge, Gibraltar

The Parson’s Lodge, at Rosia Bay, was used as a battery

Exploring Gibraltar’s Defences

The last significant military action in Gibraltar was during the Second World War. Since that time urban development has encroached upon the walls but recent efforts have been made to preserve and protect the fortifications. You will see walls, bastions and batteries everywhere, all marked with their military names. Walk down Line Wall Road and you will see long stretches of the old walls. Look out for the King’s Bastion: it is now a leisure centre but parts of the original bastion remain.

King's Bastion, Gibraltar

Pinnable image of an old entrance to the King’s Bastion

As the Line Wall was a sea defence you might be surprised to see land on both sides. The reason is that almost all the land between the wall and the sea was reclaimed during the 20th century. In fact much of it, including Ocean Village where I stayed this time, wasn’t even there when I first visited Gibraltar in the 1970s! Today this new land is full of shops, apartments and leisure areas, as well as facilities for yacht-owners. For the first time in Gibraltar’s history it is welcoming visitors rather than trying to keep them away.

Ragged Staff Gates, Gibraltar

The Ragged Staff Gates once opened up to the sea


Looking for accommodation in Gibraltar? Check out the recommendations on

This post is now available as an app for mobile devices – click here to find out more.

Share this post!
Tagged with: