Tunisia vs Libya: Two Neighbours’ Histories Side by Side, and Where They Split
Country Comparisons

Tunisia vs Libya: Two Neighbours’ Histories Side by Side, and Where They Split

Libya is almost eleven times bigger than Tunisia, yet Tunisia has more people. Their histories ran in parallel from Carthage and Cyrene to 2011, then split sharply.

Geography Worlds
March 20, 2026
7 min read

Libya is much the larger country: its 1,759,541 km² is almost eleven times Tunisia’s 163,610 km². Tunisia, though, has more people, 11.97 million at its 2024 census against an estimated 7.36 million in Libya the same year. On average Libya is the richer of the two, with nominal GDP per capita of about US$6,800 against Tunisia’s US$4,530 (IMF, 2025). The capitals are Tunis and Tripoli, both on the Mediterranean coast. Arabic is the official language of both countries, and in daily life people speak Tunisian Arabic and Libyan Arabic respectively. The two countries meet along a 461 km border that runs from the coast at Ras Ajdir south to the tripoint with Algeria. Their histories ran closely in parallel for more than two thousand years, then split sharply in the 20th century. The sections below set the two timelines side by side and show where they diverged.

Carthage and Cyrene: a Phoenician west and a Greek east

In the ancient world the difference lay between west and east rather than along today’s border. By tradition, Phoenician colonists from Tyre founded Carthage in 814 BC on the Gulf of Tunis. Their city became the capital of a Punic empire that controlled much of the western Mediterranean. Rome destroyed it in 146 BC at the end of the Third Punic War, after a siege lasting almost three years. Rome later rebuilt it as Roman Carthage.

Ruins of the Antonine Baths at Carthage with a tall re-erected column and the Gulf of Tunis behind
The Antonine Baths at Carthage, on the Gulf of Tunis just outside modern Tunis. Photo: Bernard Gagnon, CC BY-SA 3.0, via Wikimedia Commons

Western Libya, Tripolitania, belonged to the same Punic world. Leptis Magna began as a Punic settlement before 500 BC. It grew rapidly under Emperor Septimius Severus (reigned 193–211), who was born in the city. Eastern Libya followed a different, Greek path. According to Herodotus, settlers from the island of Thera founded Cyrene in 631 BC, and the city gave its name to the whole region of Cyrenaica. Cyrene has been a UNESCO World Heritage Site since 1982. So from the start, what is now Libya faced two ways: west towards Carthage and east towards the Greek world and Egypt.

The Roman theatre at Leptis Magna in Libya, with curved stone seating, a colonnaded stage and the Mediterranean beyond
The Roman theatre at Leptis Magna, east of Tripoli, in the city where Septimius Severus was born. Photo: bobrayner, CC BY 2.0, via Wikimedia Commons

The Arab conquests of the 7th century brought both regions into the Islamic world within a few decades of each other. After taking Alexandria in 642, Amr ibn al-As pushed west through Cyrenaica and took Tripoli around 643. In 647 a second army under Abdullah ibn Saad defeated the Byzantines at Sufetula in southern Tunisia. Around 670, Uqba ibn Nafi founded Kairouan in central Tunisia as a base for campaigns farther west, and it became a major centre of Sunni scholarship. In the following centuries Tunis became the seat of its own ruling dynasties, the Aghlabid emirate from 800 and the Hafsid sultanate from 1229.

Tripoli in 1551, Tunis in 1574: two Ottoman regencies

The Ottoman Empire took both cities in the 16th century. Tripoli, held by Spain and then the Knights Hospitaller, fell in 1551. Tunis changed hands several times: Hayreddin Barbarossa captured it in 1534, Charles V retook it in 1535, and an Ottoman fleet under Sinan Pasha and Uluj Ali took it for good in 1574. Both then became semi-autonomous regencies and bases for the Barbary corsairs.

In the 18th century both came under local hereditary dynasties that ruled in the Ottoman sultan’s name. In Tunis, al-Husayn I ibn Ali founded the Husainid dynasty in 1705. In Tripoli, Ahmed Karamanli founded his dynasty in 1711, and his descendant Yusuf Karamanli (reigned 1795–1832) fought the United States from 1801 to 1805. This is the first point where the timelines split. In 1835 the Ottomans ended Karamanli rule and governed Tripoli directly until 1912. The Husainids stayed in power in Tunis and kept their throne until 1957, which gave Tunisia an unbroken line of local government reaching into the modern era.

1881 and 1911: a French protectorate and an Italian invasion

The two countries came under European rule thirty years apart and in very different ways. France made Tunisia a protectorate under the Treaty of Bardo, signed on 12 May 1881 with the bey Muhammad as-Sadiq. The Husainid bey stayed on his throne while a French Resident-General held real power, and the La Marsa Conventions of 1883 extended French control to domestic affairs. France and the Ottomans agreed the coastal border between Tunisia and Tripolitania in 1886, extended it south towards Ghadames in 1892, and fixed it in detail by a treaty of 19 May 1910.

Libya was taken by force. Italy declared war on the Ottoman Empire on 29 September 1911, and under the Treaty of Ouchy of 18 October 1912 the Ottomans gave up the territory. Resistance lasted two decades. In Cyrenaica it was led by Omar al-Mukhtar (1858–1931), a teacher from the Senussi movement who became a guerrilla commander. The Italians captured him wounded near Slonta and hanged him in 1931. The colonies of Tripolitania and Cyrenaica were joined as Italian Libya in 1934. Both countries then became battlefields in the Second World War. After Italy entered the war in June 1940, Libya was the main theatre of the North African campaign, which ended in Tunisia with the Axis defeat on 13 May 1943.

24 December 1951 and 20 March 1956: two routes to independence

Libya became independent first. From 1943 to 1951 Britain administered Tripolitania and Cyrenaica and France administered Fezzan. On 21 November 1949 the UN General Assembly resolved that Libya should become independent before 1 January 1952. On 24 December 1951 King Idris I, head of the Senussi order, proclaimed the United Kingdom of Libya in a radio address from Benghazi. It was a federal monarchy built out of three very different provinces.

Tunisia’s independence was negotiated by a nationalist party. Habib Bourguiba (1903–2000), a lawyer from Monastir who co-founded the Neo Destour party in 1934, led the independence movement, and France ended its 75-year protectorate on 20 March 1956. On 13 August 1956 Tunisia enacted the Code of Personal Status. It banned polygamy, required both spouses to consent to marriage, and allowed either spouse to seek a divorce. On 25 July 1957 the country abolished the Husainid monarchy and became a republic, with Bourguiba as its first president.

Bourguiba and Ben Ali against King Idris and Gaddafi, 1951–2011

Oil made the widest gap in the two countries’ post-independence histories. Significant reserves were found in Libya in 1959, which turned one of the world’s poorest countries into a wealthy state; Libya now has the tenth-largest proven oil reserves in the world. Tunisia found no comparable oil wealth. On 1 September 1969 Muammar Gaddafi overthrew King Idris in a bloodless coup. In March 1977 he proclaimed the Jamahiriya, a system officially described as “direct democracy”, and he held power for 42 years.

Gaddafi (Libya)42 years, 1969–2011
Bourguiba (Tunisia)30 years, 1957–1987
Ben Ali (Tunisia)23 years, 1987–2011
Idris I (Libya)18 years, 1951–1969
Time in power of each country’s leaders between independence and 2011. Source: Wikipedia articles on Muammar Gaddafi, Habib Bourguiba, Zine El Abidine Ben Ali and the Kingdom of Libya

Tunisia had only two presidents in the same period. Bourguiba governed from 1957 until 7 November 1987, when his prime minister, Zine El Abidine Ben Ali, removed him in a bloodless coup by having him declared unfit to govern. Ben Ali then ruled for 23 years. Neither country was a democracy under these rulers. The difference was money: Libya’s government could draw on oil revenue, while Tunisia’s could not. Tunisia did keep its 1956 family code, and its trade unions later became part of the National Dialogue Quartet.

Sidi Bouzid to Sirte: one uprising, two different results

The Arab Spring began in Tunisia. On 17 December 2010 Mohamed Bouazizi, a street vendor in Sidi Bouzid, set himself on fire, and protests spread against unemployment, food prices, corruption and the lack of political freedom. After about a month of protests, Ben Ali fled to Saudi Arabia on 14 January 2011, ending 23 years in power. Because free elections followed, Tunisia’s revolution was for years described as the only successful movement of the Arab Spring.

Libya’s uprising began a month later, on 17 February 2011, and quickly became a civil war. NATO intervened from 19 March. After the Battle of Sirte, forces of the National Transitional Council captured Gaddafi on 20 October 2011 and killed him shortly afterwards. The two neighbours had now removed long-serving rulers within ten months of each other. What followed was very different.

A Nobel Prize in Tunis, rival governments in Tripoli and Tobruk

Tunisia adopted a new constitution on 26 January 2014. The Tunisian National Dialogue Quartet, four civil-society organisations that helped steer the political settlement, received the 2015 Nobel Peace Prize. The course has since changed again. On 25 July 2021 President Kais Saied dismissed the government and suspended parliament, a move widely described as a self-coup. A 2022 referendum, with turnout of about 30 percent, approved a constitution that greatly strengthened presidential power.

Libya has been split between rival authorities for most of the time since 2014. That year a dispute between rival parliaments, the newly elected House of Representatives, which moved to Tobruk, and the reconvened General National Congress in Tripoli, led to a second civil war; from 2016 the Tripoli side was represented by the UN-backed Government of National Accord. A permanent ceasefire was signed on 23 October 2020, and a Government of National Unity took office in 2021. In March 2022, however, the House of Representatives named a rival Government of National Stability, and the two have operated side by side ever since. The United Nations and most foreign governments recognise the Tripoli-based unity government. Political rivalries continue to delay the national elections the unity government was set up to organise.

The ruins show how far back the two countries’ histories run together. You can read more about the Punic capital in our guide to Carthage and about Septimius Severus’s home city in our Leptis Magna guide. For a comparison of Libya with its much larger western neighbour, see Algeria against Libya.