A rock at the gate of the sea
Gibraltar is a ridge of limestone, about five kilometres long and 426 metres high, joined to Spain by a low sandy neck. Across the strait, some twenty-five kilometres to the south, rises Jebel Musa in Morocco. Greek and Roman writers called the two heights the Pillars of Heracles, the end of the known sea; the northern one was Calpe. Caves at the foot of the Rock, among them Gorham’s Cave, show that Neanderthals lived here tens of thousands of years ago.
In Roman and Visigothic times there was no town on the Rock itself. The ports of the strait were on the bay to the west, where Carteia stood in antiquity and Algeciras grew later, and at Tarifa and Ceuta. The Rock mattered as a landmark and a watch point. Whoever held both shores could close the passage between the Mediterranean and the Atlantic, or open the way from Africa into the peninsula.
The landing of 711
In 711 Tariq ibn Ziyad, a Berber commander serving the Arab governor of North Africa, Musa ibn Nusayr, crossed the strait with an army of several thousand men, most of them Berbers. A few months later he defeated King Roderic at the battle of Guadalete. The story of the landing is told by Arabic writers, the earliest of them Ibn Abd al-Hakam, an Egyptian scholar who wrote about 860, a century and a half later.
These accounts mix fact with legend, such as the tale of Count Julian of Ceuta, who was said to have lent the ships to avenge his daughter. The oldest Christian account, the Latin Chronicle of 754, written by a Christian living under Muslim rule, tells of the conquest but does not mention the Rock. That Tariq landed on it is a tradition kept in its name, Jabal Tariq, which later became Gibraltar; some historians think he came ashore on the bay near Algeciras.
The City of Victory
For four centuries the Rock stayed almost empty. In 1160 the Almohad caliph Abd al-Mumin, who ruled North Africa and al-Andalus from Marrakesh, ordered a fortified town built on its slope. He named it Madinat al-Fath, “the City of Victory” It was a base for armies crossing from Africa to fight in the peninsula. The Arabic chroniclers of the Almohad court, who wrote in praise of the caliph, describe the building of walls, a palace and a mosque.
Little of the Almohad town can now be seen. The castle that still stands over the modern town, with its great square tower, was rebuilt after 1333 by the Marinids, the dynasty that then ruled Morocco. Excavation on the slope has found parts of walls, cisterns and baths of the Islamic period, but much of the old town lies under later buildings and the fortifications of the British era.
The battle for the strait
After the Christian conquest of Seville in 1248, the strait became the front line. Castile, the emirate of Granada and the Marinids fought over its ports for a century, and each side made and broke alliances with the others. In 1309 Ferdinand IV of Castile took Gibraltar during a campaign against Algeciras. In 1333 a Marinid army led by Abu Malik, son of the sultan Abu al-Hasan, besieged it, and the starving garrison surrendered.
Alfonso XI of Castile beat the Marinids and Granada at Río Salado in 1340 and took Algeciras in 1344. In 1349 he besieged Gibraltar, but the Black Death broke out in his camp and he died there in March 1350. The Castilian royal chronicle of his reign tells the story from his side; Ibn Khaldun, a North African historian who served the Marinids, gives the other. In about 1374 the Marinids handed Gibraltar to the Nasrid emirs of Granada.
Castilian, then British
On 20 August 1462, the feast of Saint Bernard, Castilian troops from the nearby frontier towns took Gibraltar, while Granada was weakened by quarrels inside the Nasrid dynasty. King Henry IV of Castile kept it as a royal town; it later passed to the dukes of Medina Sidonia, and Isabella I took it back for the crown in the early 1500s. Its Muslim people left. Gibraltar was then a Christian fortress facing Africa, thirty years before the fall of Granada.
In 1704, during the War of the Spanish Succession, an English and Dutch fleet took the town, and in the Treaty of Utrecht of 1713 Spain ceded it to Britain. It is still a British Overseas Territory, and Spain still claims it. Of the medieval centuries the Rock keeps the Moorish Castle, stretches of wall and its name. The name is the clearest trace of the crossing of 711, an event that rests on texts written long after it rather than on anything found in the ground.