Gibraltar’s history is rich and complex, shaped by thousands of years of conquests, struggles and cultural exchanges. The ebb and flow of peoples and ideas have left traces that are still visible today.
Though small in size, Gibraltar has played a major strategic role at the entrance to the Mediterranean and in the relationship between Europe and North Africa. Its position has made the Rock highly contested over the centuries, and Gibraltar’s historical timeline records fourteen sieges.
Follow the timeline below to discover some of the key events in the history of this iconic Rock.
Early Human Presence and Neanderthals
Gibraltar preserves some of Europe’s most important evidence of Neanderthal occupation. Archaeological discoveries in caves on the Rock show that Neanderthals lived here for tens of thousands of years.
The Gorham’s Cave Complex, a UNESCO World Heritage Site, contains archaeological deposits documenting Neanderthal and early modern human occupation over a period spanning approximately 120,000 years.
Gibraltar also has an important place in the history of Neanderthal research. A Neanderthal skull was discovered at Forbes’ Quarry in 1848, eight years before the famous remains found in Germany’s Neander Valley gave Neanderthals their modern name.
The caves of Gibraltar continue to provide important evidence about how Neanderthals lived, including their diet, use of natural resources and cognitive behaviour.
The Phoenicians and Carthaginians (from around 1000 BC)
The Phoenicians were among the great seafaring peoples to navigate the waters around Gibraltar. The Rock and the Strait served as important landmarks for sailors travelling between the Mediterranean and Atlantic.
Later, Carthaginian influence extended across much of the western Mediterranean and southern Iberian Peninsula. The Strait became increasingly important as a gateway linking Mediterranean trade routes with the Atlantic.
In classical tradition, Gibraltar was associated with one of the two Pillars of Hercules, marking the western edge of the known Mediterranean world.
Roman Period (2nd Century BC – 5th Century AD)
Following Rome’s defeat of Carthage, the southern Iberian Peninsula became part of the Roman world.
Gibraltar itself does not appear to have developed into a major Roman settlement, but its location at the Strait placed it within an important maritime region connecting Hispania, North Africa and the wider Mediterranean.
Classical writers referred to the Rock as Calpe or Mons Calpe, identifying it with the northern Pillar of Hercules.
Late Antiquity: Visigoths and Byzantines (5th – 7th Century)
Following the decline of Roman rule in the western Mediterranean, much of the Iberian Peninsula came under Visigothic control.
The Byzantine Empire later established territories along parts of the southern Spanish coast during Emperor Justinian’s attempt to recover former western Roman lands. The political situation around the Strait changed repeatedly during this period, although evidence for the precise administration of Gibraltar itself is more limited than for later centuries.
The Islamic Conquest (711 – 1462)
In 711, a mainly Berber army led by Ṭāriq ibn Ziyād crossed from North Africa into the Iberian Peninsula.
The Rock became known as Jabal Tariq – “Mountain of Tariq” – from which the modern name Gibraltar ultimately derives.
Muslim rulers controlled Gibraltar for much of the following seven centuries, although control changed hands several times. The Rock became increasingly fortified, particularly during the medieval period.
Gibraltar was briefly occupied by Castilian forces between 1309 and 1333 before returning to Muslim control. Fortifications constructed and expanded during this era included the Moorish Castle, parts of which remain one of Gibraltar’s most important historic landmarks.
The Christian Reconquista (1462 – 1704)
In 1462, Christian forces captured Gibraltar from the Muslim rulers of Granada. The territory subsequently became part of the Spanish Crown.
For more than two centuries Gibraltar remained under Spanish control. Its strategic importance increased as European maritime power expanded and traffic through the Strait grew.
This period ended during the War of the Spanish Succession, when Gibraltar changed hands once again.
Anglo-Dutch Capture and British Rule (1704)
In 1704, Anglo-Dutch forces supporting the Habsburg claimant to the Spanish throne captured Gibraltar during the War of the Spanish Succession.
In 1713, Article X of the Treaty of Utrecht formally ceded Gibraltar to Great Britain.
Spain subsequently made several attempts to recover the territory. The most famous was the Great Siege of 1779–1783, the fourteenth siege in Gibraltar’s traditional historical chronology and the longest siege in its history.
Gibraltar has remained under British sovereignty since the early 18th century.
The Napoleonic Wars (1803 – 1815)
During the Napoleonic Wars, Gibraltar’s strategic position made it an important British naval and military base.
The Royal Navy used Gibraltar to support operations in the Mediterranean and monitor shipping passing through the Strait. The territory also played an important logistical role during the Peninsular War against Napoleonic France.
Its fortifications continued to develop as Gibraltar became increasingly important to Britain’s Mediterranean strategy.
Gibraltar in World War II (1939 – 1945)
Gibraltar became a major Allied military base during the Second World War.
Its position allowed Britain to help control access between the Atlantic and Mediterranean, while the Rock supported naval and air operations across the region.
A huge network of military tunnels was excavated inside the Rock to accommodate troops, equipment, supplies and command facilities.
Gibraltar also played an important role in Operation Torch, the Allied invasion of North Africa in November 1942. General Dwight D. Eisenhower established his headquarters in Gibraltar while directing the early stages of the operation.
Political Tensions with Spain (1950s – 1985)
After World War II, Gibraltar became the focus of increasing political tension between Britain and Spain over sovereignty.
A sovereignty referendum was held on 10 September 1967. More than 99% of voters chose to retain their links with Britain rather than accept Spanish sovereignty.
In 1969, the government of Spanish dictator Francisco Franco closed the land frontier with Gibraltar.
The border remained closed for more than a decade. It reopened to pedestrians in December 1982 and was fully reopened on 5 February 1985, shortly before Spain joined the European Economic Community in 1986.
Gibraltar Today (1985 to Present)
Since the reopening of the frontier, Gibraltar has developed a diversified economy based on sectors including financial services, online gaming, tourism and maritime services.
Gibraltar remains a British Overseas Territory with a high degree of internal self-government, while the United Kingdom retains responsibility for matters including defence and foreign affairs.
In 2002, a second sovereignty referendum was held after Britain and Spain discussed the possibility of shared sovereignty. Almost 99% of voters rejected the principle of joint British-Spanish sovereignty.
In 2006, the Córdoba agreements between Gibraltar, the United Kingdom and Spain introduced practical cooperation in areas including the airport, telecommunications and frontier movement.
Gibraltar participated in the UK’s referendum on European Union membership on 23 June 2016. A total of 95.9% of voters in Gibraltar supported remaining in the European Union, on a turnout of 83.6%.
The United Kingdom nevertheless voted overall to leave the EU, and Gibraltar left the European Union together with the UK on 31 January 2020.
Following Brexit, Gibraltar was not included in the territorial scope of the main UK–EU Trade and Cooperation Agreement. Years of negotiations followed to establish a separate framework for Gibraltar’s relationship with the European Union.
A political agreement was reached on 11 June 2025. After the legal text was finalised, the UK–EU Agreement in respect of Gibraltar was formally signed in Brussels on 14 July 2026.
The agreement entered into provisional application on 15 July 2026.
One of its most visible effects was the removal of routine immigration and customs checks at the Gibraltar–Spain land frontier, allowing much more fluid movement for residents, workers and visitors.
Gibraltar has not joined the European Union or the Schengen Area. Instead, the treaty creates special arrangements under which Gibraltar’s short-stay visitor requirements are aligned with relevant Schengen rules, with Gibraltar and Spanish authorities carrying out the applicable controls at the airport and port.
The agreement also establishes a customs union between Gibraltar and the EU, while Gibraltar itself does not become part of the EU Customs Territory. New customs and indirect-tax arrangements accompany the removal of routine customs checks at the land frontier.
The treaty does not alter Gibraltar’s sovereignty or its constitutional status as a British Overseas Territory. It also contains provisions protecting UK military operations in Gibraltar.
The agreement remains under provisional application while the formal ratification process is completed.
Military Heritage and Fortifications
From the Moorish Castle to British gun batteries, the Great Siege Tunnels and the extensive World War II tunnel network, Gibraltar retains an extraordinary concentration of military heritage.
Many of these sites are open to visitors and offer an insight into the Rock’s long-standing strategic importance at the entrance to the Mediterranean.
They also illustrate how Gibraltar’s fortifications evolved across very different periods of its history, from medieval defences to the major military infrastructure developed during the British period.
With its rich and eventful past, Gibraltar is much more than a strategic enclave. Its history reflects an intertwining of civilisations and cultures stretching back thousands of years, as well as centuries of military and political competition for control of the Strait.
History enthusiasts can visit the Gibraltar National Museum, which houses collections covering the territory’s archaeology, natural history, culture and military past. The museum is also an important interpretation centre for the UNESCO-listed Gorham’s Cave Complex.
Whether you’re a visitor, historian or curious traveller, Gibraltar offers a remarkable window into the history of the Mediterranean, Europe and the relationship between the two continents.
Last Updated on August 15, 2026 by Sebastien Frisco
