The Spanish lines at La Línea
After failing to retake the Rock in 1727, Spain built a fortified line across the isthmus. It was blown up in 1810, but its forts left ruins, and a town took its name.

i
Ymblanter, CC BY-SA 4.0Cross the frontier from Gibraltar on foot and you are in La Línea de la Concepción, a busy Spanish town that runs along the shore at the foot of the Sierra Carbonera. Its name means simply "the line", and it comes from a fortification that is now almost entirely gone: the Spanish lines that sealed off the isthmus for most of the 18th century.
Why the lines were built
Spain lost Gibraltar in 1704 and ceded it at Utrecht in 1713. The siege of 1727 was meant to win it back, and failed. The lesson the Spanish drew was that a quick assault across the narrow sand was unlikely to work while the Royal Navy could supply the garrison by sea. Instead, they would cut the Rock off by land permanently and wait for a better chance. The background is told in 1704 and 1727: how the Rock changed hands.
In the years after 1727 Spanish engineers built a line of fortifications right across the isthmus, from the bay on the west to the Mediterranean on the east. It was a line of contravallation, a defensive barrier facing the enemy fortress, and it stood at a respectful distance from the British guns on the north face.
Santa Bárbara and San Felipe
The line was anchored at each end by a fort. On the eastern shore stood the Fort of Santa Bárbara; on the western, bay side stood the Fort of San Felipe. Between them ran a curtain of walls and earthworks with batteries along it. Together they formed a barrier that controlled every movement between Gibraltar and Spain.
The forts were built in the bastioned style of the period: low, thick walls laid out in pointed angles, so that every stretch of wall could be swept by fire from a neighbouring bastion and no attacker could find a dead corner to shelter in. Surrounding ditches and outworks added depth.

i
tiger rus, CC BY 3.0During the Great Siege of 1779 to 1783 the lines were the base of the Spanish effort on land. Batteries were pushed forward from them across the sand, and it was against those forward works that the British launched their sortie of November 1781, told in the Great Siege, 1779 to 1783. The British, for their part, cut galleries into the north face to fire down on them, the story of the Great Siege Tunnels.
See also, part 4The Great Siege, 1779 to 1783Blown up in 1810
The lines ended in an unexpected way. During the Peninsular War, Spain and Britain became allies against Napoleon. In 1810, with French armies advancing into southern Spain, there was a fear that the forts could fall into French hands and be turned against Gibraltar. With Spanish agreement, British engineers demolished the lines, blowing up the forts and levelling much of the curtain.
What remained was gradually buried, built over or carried away. The two forts survived only as low ruins and foundations, and the open ground of the isthmus slowly filled with houses.
It is an odd end for a fortification. The lines were never stormed and never taken; they were destroyed by the very enemy they had been built to contain, acting as an ally, to keep them out of the hands of a third power. For the garrison of Gibraltar it meant that, for the first time in more than seventy years, the view north from the Rock was no longer a view of a hostile wall.
The town that grew from the lines
A settlement grew up on the Spanish side in the 19th century, close to the old line and the frontier. It drew people who worked in Gibraltar, traders and fishermen, and it became a separate municipality in 1870 under the name La Línea de la Concepción. Its fortunes have been tied to the frontier ever since, through the long closure of the border in the later 20th century and its reopening.

i
Adam Cli, CC BY-SA 4.0The ruins of Fort Santa Bárbara stand near the eastern beach that still bears its name. In recent years the remains have been excavated and laid out so that you can see the shape of the bastions and the ditch, with the Rock rising directly behind. Fort San Felipe, on the bay side, has left fewer traces.
Walking the lines today
Start in Gibraltar and walk north past the runway to the frontier. Crossing on foot is normal, though the rules for documents changed after Brexit. Once in La Línea, head east towards the Mediterranean shore and the beach of Santa Bárbara, where the fort's remains lie. It takes about fifteen minutes.
Stand among the ruins and turn back towards Gibraltar. The north face fills the view, with the dark openings of the galleries high in the cliff, and you are looking at the Rock exactly as the Spanish gunners did for more than seventy years. Then walk west through the town towards the bay side, where San Felipe once stood, and you have crossed the full line from sea to sea.
- The beach is exposed and hot in summer: take water and a hat.
- Carry your documents for the return crossing, and allow for queues at busy times.