Country
Somalia
Before 1000 AD the Horn of Africa was inhabited by Cushitic peoples, the ancestors of the Somalis: herders and seafarers who traded incense with Egypt, Rome, Arabia and India. The port towns of the northern and eastern coasts adopted Islam in the 7th–10th centuries.
Antiquity
- c. 10,000 years ago
The hunters of Buur Heybe
The granite hill of Buur Heybe rises above the plains of the country's south, near Baidoa. In its rock shelters archaeologists found layers many metres deep containing stone tools, antelope bones and the remains of hearths. Late Stone Age hunter-gatherers lived here for thousands of years, and later, about 4,000 years ago, the first herders also arrived.
Buur Heybeon the map →
- c. 4th–3rd millennium BC
The paintings of Laas Geel
The rock shelters of Laas Geel near Hargeisa, discovered by French archaeologists in 2002, hold some of the most vivid rock paintings in Africa. Ancient herders painted in red, white and yellow cows with broad decorated dewlaps, and beside them people with raised arms, dogs and giraffes. The paintings are several thousand years old.
Laas Geel shows what a place cattle held in the life and beliefs of the ancient inhabitants of the Horn.
Laas Geelon the map →
- 2nd millennium BC
The land of Punt
The Egyptians sent expeditions to "the land of Punt" for myrrh and frankincense, ebony, gold, leopard skins and baboons; the most famous voyage was sent around 1470 BC by Queen Hatshepsut. Many scholars have looked for Punt on the northern coast of Somalia, where frankincense and myrrh trees still grow, although others place it on the shores of Eritrea and Sudan.
Northern coast (Berbera)on the map →
- 1st millennium BC
Frankincense and camels
Boswellia frankincense trees grow in the Cal Madow mountains in the north of the country, and myrrh on the arid plains. The resin was tapped and collected and then carried to the sea. Around the 1st millennium BC camels spread across the steppes of the Horn, allowing nomads to range far into the deserts. The herders spoke Cushitic languages, one of which gave rise to Somali.
Cal Madow mountainson the map →
- 1st century AD
The trading harbours of the Periplus
The Greek Periplus of the Erythraean Sea describes "Barbaria", the Gulf of Aden coast with the markets of Malao (near present-day Berbera), Mundus, Mosylon and the "Spice Market" at Cape Guardafui, and beyond it Opone. Ships came here from Roman Egypt, Arabia and India, exporting frankincense, myrrh, cinnamon, tortoiseshell and slaves and importing cloth, iron, wine and grain. Excavations at Cape Hafun have confirmed the existence of Opone.
The Somali coast was a link in the trade between the Mediterranean and India.
Opone (Cape Hafun)on the map →
- 7th–8th centuries
Islam in Zeila
Islam came early to the northern ports, which were linked to Arabia by sea trade. Tradition names the Masjid al-Qiblatayn mosque in Zeila as one of the oldest in Africa: its mihrab, it is said, faced both Jerusalem and Mecca. Zeila became the gateway through which Muslim merchants reached the nomads and the Ethiopian Highlands.
Zeilaon the map →
- 9th–10th centuries
The towns of Benadir
On the Benadir coast of the Indian Ocean, trading settlements grew up where local people lived alongside settlers from Arabia and the Persian Gulf. In the early 10th century the Arab traveller al-Mas'udi described the "land of the Berbers" on the eastern coast of Africa. Harbours arose on the sites of present-day Mogadishu, Merca and Barawa, visited by ships from Oman and Siraf seeking ivory, hides and ambergris.
Mogadishuon the map →
Middle Ages (1000–1499)
Between 1000 and 1500 Somali nomadic clans spread across the Horn of Africa and adopted Islam, while the trading towns of Zeila, Mogadishu, Merca and Barawa flourished on the coast. In the north the sultanates of Ifat and Adal arose, and in the south the Ajuran Sultanate.
- 10th–11th centuries
The Somalis and Islam
By the beginning of the second millennium most of the Horn of Africa was inhabited by Somalis, nomads who bred camels, goats and sheep. They were divided into clans tracing their descent from common ancestors. Islam came to them from Arabia through the ports of the northern coast and gradually became their common faith. In the south, in the valleys of the Jubba and Shabelle rivers, lived farmers.
Interior of Somaliaon the map →
- 11th–12th centuries
The ports of Zeila and Berbera
The ports of Zeila and Berbera traded on the shore of the Gulf of Aden. Arab geographers described Zeila as a town of Muslim merchants from which slaves, ivory, frankincense, myrrh and hides were exported to Yemen, Egypt and India. The monsoons linked Somalia with Arabia and Persia: in winter the wind carried ships to Africa, in summer back again.
Zeilaon the map →
- 1269
The mosques of Mogadishu
Mogadishu on the southern coast, founded according to tradition by settlers from Arabia and Persia together with local Somalis, had become a wealthy city by the 13th century. The minaret of the Friday Mosque is dated by an inscription to 1238, and the mosque of Fakhr ad-Din to 1269. The city was ruled by sultans who from the 13th–14th centuries minted their own copper coins.
Mogadishuon the map →
- c. 1285
Zeila under Ifat
Around 1285 the Walashma dynasty created the Sultanate of Ifat in the eastern Ethiopian Highlands. The port of Zeila became its main gateway to the sea, through which all the caravan trade with the interior passed. The Somali clans of the north were drawn into Ifat's wars with Christian Ethiopia, which began in the 14th century.
Zeilaon the map →
- 13th–14th centuries
The Ajuran Sultanate
Between the Shabelle and Jubba rivers the Ajuran Sultanate rose to power. Its rulers of the Garen lineage controlled the wells and irrigation canals that watered the sorghum fields and levied tribute on the herders. They built stone wells and forts and protected the trade routes to the Benadir ports of Mogadishu, Merca and Barawa. Ajuran was one of the few hydraulic states in Africa.
Shabelle valleyon the map →
- 1331
Ibn Battuta in Mogadishu
In 1331 the Moroccan traveller Ibn Battuta visited Zeila and then Mogadishu. He described an enormous city ruled by Sultan Abu Bakr ibn Umar, who spoke Somali and Arabic. Local weavers made cloth that was exported to Egypt. The merchants from every ship were met by host-brokers who provided them with lodging.
Ibn Battuta's account is the most vivid description of medieval Mogadishu.
Mogadishuon the map →
- c. 1410
The death of Sa'ad ad-Din
In the early 15th century Ethiopian forces crushed the Sultanate of Ifat. Sultan Sa'ad ad-Din II retreated to the coast and was killed near Zeila; an islet off the town is still called Sa'ad ad-Din Island. The Ethiopians occupied Zeila for a time. The sultan's sons fled to Yemen, to the Rasulid ruler.
Zeilaon the map →
- c. 1415
The Sultanate of Adal
On their return from Yemen, the sons of Sa'ad ad-Din founded the Sultanate of Adal with its capital at Dakkar. It covered the northwest of present-day Somalia, including Zeila, and the adjoining lands. Somalis, Afar and Harari mingled in Adal. The sultanate continued the war with Ethiopia and a century later became the base of Imam Ahmad Gragn's great jihad.
Zeilaon the map →
- 1417–1419
Zheng He's Chinese fleet
During its fifth voyage the Chinese fleet of Admiral Zheng He visited the coast of Somalia, calling at Mogadishu and Barawa. Embassies from these cities travelled to China with gifts of lions, leopards, zebras and ostriches, and brought back silk and porcelain. Chinese chronicles described Mogadishu as a city of multi-storey stone houses in an arid land.
Barawaon the map →
- 15th century
The clans move south
Over many centuries Somali clans moved from north to south in search of pasture, pushing aside or absorbing the earlier inhabitants, farmers and other Cushitic herders. By the 15th century the Hawiye and other clans had firmly settled the Shabelle valley and the area around Mogadishu. Thus took shape the distribution of the Somalis that survives to this day.
Central Somaliaon the map →
From 1500 to the present
Somalia occupies the Horn of Africa, the easternmost projection of the continent, where for centuries nomadic herders and the trading towns of the Indian Ocean coexisted. The colonial partition divided the Somalis between Britain, Italy, France and Ethiopia; the dream of a "Greater Somalia" after independence in 1960 led to wars, and the collapse of the state in 1991 to decades of civil war from which the country is still emerging.
- c. 1500
Ajuran and the towns of Benadir
Around 1500 the south of present-day Somalia was dominated by the Ajuran Sultanate, which controlled the wells and irrigated lands of the Shabelle valley. On the Benadir coast the trading towns of Mogadishu, Merca and Barawa flourished: livestock, frankincense, ivory and cloth were exported from here to Arabia, Persia and India, and Mogadishu minted its own coins. In the north, around Zeila, the Muslim Sultanate of Adal ruled.
Mogadishuon the map →
- 1499–1507
The Portuguese off the Benadir coast
Returning from India in early 1499, Vasco da Gama bombarded Mogadishu with cannon. In 1507 the fleet of Tristão da Cunha and Afonso de Albuquerque stormed and sacked Barawa, which had refused to pay tribute. The Portuguese never conquered Mogadishu, but their dominance at sea undermined the trade of the Somali towns with India.
Barawaon the map →
- 1529–1543
Somalis in the army of Adal
Imam Ahmad ibn Ibrahim al-Ghazi (Gragn) of Adal roused the Muslims of the Horn to jihad against Christian Ethiopia. The chronicler Shihab ad-Din Arab Faqih names many Somali clans in his army: the Harti, Marehan, Gerri and others. After the victories of 1529 Adal's army swept across almost the entire Ethiopian Highlands, but in 1543 the imam was killed and Adal fell into decline.
Zeilaon the map →
- late 17th – 19th century
The Geledi Sultanate
At the end of the 17th century a weakened Ajuran collapsed under the blows of rebellious clans. In the south its place was taken by the Geledi Sultanate, centred on Afgooye on the Shabelle River, which controlled the trade between the interior and Mogadishu. The farmers of the valley grew sorghum and later cotton, often with the labour of slaves brought from the Swahili coast. In the 19th century Geledi was the strongest state in the south.
Afgooyeon the map →
- 19th century
Zanzibar and the northern sultanates
In the 19th century the Sultan of Zanzibar claimed the Benadir ports and kept a garrison in Mogadishu, although real power there remained with the local elders. In the northeast the Majeerteen and Hobyo sultanates took shape, trading in frankincense and livestock. The annual fair at Berbera drew caravans from Harar and the Ogaden and merchants from Yemen and India.
Berberaon the map →
- 1884–1887
British Somaliland
Britain supplied its base at Aden with meat from Somalia. After the withdrawal of the Egyptian garrisons in 1884–1886, British agents concluded treaties with the Isaaq, Gadabuursi and Issa clans, and in 1887 the protectorate of British Somaliland was proclaimed with its capital at Berbera. Until 1898 it was governed from Aden as part of British India.
Berberaon the map →
- 1889–1905
Italian Somaliland
In 1888–1889 Italy proclaimed a protectorate over the Hobyo and Majeerteen sultanates. In 1892 it leased the Benadir ports from the Sultan of Zanzibar, and in 1905 bought them outright, creating the colony of Italian Somaliland with its capital at Mogadishu. Italian banana and sugar cane plantations later appeared along the Shabelle. The Somali lands were divided between Italy, Britain, France and Ethiopia.
The colonial partition divided a single people among five territories.
Hobyoon the map →
- 1899–1920
The Dervish State
In 1899 the preacher Mohammed Abdullah Hassan, whom the British nicknamed the "Mad Mullah", declared jihad against the British, Italians and Ethiopians. His Dervishes waged war for twenty years, built stone forts at Taleh and withstood four British expeditions. In January 1920 Britain for the first time made aircraft the main striking force of a colonial campaign: planes bombed Taleh, and in December of that year the leader, who had fled to Ethiopian territory, died there, apparently of influenza.
Mohammed Abdullah Hassan is revered in Somalia as a national hero and poet.
Talehon the map →
- 1925–1927
Jubaland and the fascist "pacification"
In 1924, as a reward for Italy's part in the First World War, Britain ceded to it Jubaland, the lands west of the Jubba River with the port of Kismayo, which were handed over in June 1925. In 1925–1927 the fascist governor Cesare Maria De Vecchi forcibly subdued the previously semi-independent northern sultanates of Hobyo and Majeerteen. All of southern and eastern Somalia came under direct Italian rule.
Kismayoon the map →
- December 1934
The Walwal incident
On 5 December 1934, at the wells of Walwal in the Ogaden, where the Italians had built a fort on Ethiopian territory, a firefight broke out between Italian Somali soldiers and Ethiopian troops. Mussolini used the incident as a pretext for war. In 1935 Marshal Graziani's army advanced from Italian Somaliland on the Ogaden and Harar, and Somali units fought on the Italian side.
Walwalon the map →
- 1940–1941
Somalia in the Second World War
In August 1940, after fighting at Tug Argan, Italian forces captured British Somaliland, one of Italy's few conquests in its war against Britain. But as early as February 1941 British and African units from Kenya took Kismayo and Mogadishu, and in March a landing at Berbera regained the northern protectorate. Until 1950 all of Somalia except the French part was under British administration.
Mogadishuon the map →
- 1943–1960
UN trusteeship and the Youth League
On 15 May 1943 the Somali Youth League was founded in Mogadishu, campaigning for the unity of all Somalis and for independence. In 1950 the UN placed the former Italian colony under Italian trusteeship for exactly ten years, with the obligation to prepare it for independence. During these years the first elections were held, and Somali officials and a government appeared.
Mogadishuon the map →
- 26 June – 1 July 1960
Independence and unification
On 26 June 1960 the former British Somaliland became independent, and on 1 July the trust territory in the south. On the same day the two parts united as the Somali Republic, with Aden Abdullah Osman as president. The five-pointed star on the flag symbolised the five parts of the Somali nation, including Djibouti, the Ogaden and northeastern Kenya, which the new state sought to join to itself.
The idea of a "Greater Somalia" determined the country's foreign policy for decades.
Mogadishuon the map →
- 1969–1975
Siad Barre's coup
On 15 October 1969 President Abdirashid Ali Shermarke was assassinated in Las Anod, and on 21 October General Mohamed Siad Barre seized power. He proclaimed "scientific socialism" and an alliance with the USSR and nationalised the banks and the land. In 1972 a Latin-based script was introduced for the Somali language, and in 1974–1975 urban schoolchildren went out to the nomad camps to teach herders to read and write.
Mogadishuon the map →
- 1977–1978
The Ogaden War
Taking advantage of the revolutionary chaos in Ethiopia, in July 1977 the regular Somali army, which had previously backed the rebels of the Western Somali Liberation Front, invaded the Ogaden and occupied most of the region. But the USSR switched to Ethiopia's side, and in March 1978 an Ethiopian-Cuban offensive drove the Somalis out. The defeat undermined Barre's regime, and hundreds of thousands of Ogadeni refugees poured into Somalia.
Jijigaon the map →
- 1988
The destruction of Hargeisa
Clan-based rebel movements rose against Barre's dictatorship. In May 1988 the Somali National Movement, backed by the Isaaq clan, attacked Burao and Hargeisa. In response the government army subjected the cities to artillery and air bombardment. Tens of thousands of civilians were killed, and hundreds of thousands fled to Ethiopia.
Hargeisaon the map →
- January – May 1991
The collapse of the state
On 26 January 1991 Siad Barre fled Mogadishu, which had been taken by the forces of the United Somali Congress. The victors immediately split: General Mohamed Farrah Aidid and Ali Mahdi Mohamed fought over the capital, destroying it. On 18 May 1991 the northern clans proclaimed the independence of Somaliland within the borders of the former British protectorate; Somaliland is de facto independent, but Somalia regards it as part of its territory; on 26 December 2025 Israel became the first UN member state to recognise it, a move condemned by Somalia, the African Union and a number of other states.
Somalia became the textbook example of a "failed state".
Mogadishuon the map →
- 1992–1995
Famine and the Battle of Mogadishu
War and drought caused a famine in 1992 that claimed about 300,000 lives. In December 1992 US Marines of Operation Restore Hope landed in Mogadishu, followed by a UN mission. An attempt to seize Aidid's men on 3–4 October 1993 turned into street fighting in which 18 Americans and hundreds of Somalis were killed. The United States left in 1994, and the UN in 1995.
Mogadishuon the map →
- 2006–2011
The Islamic Courts and al-Shabaab
In June 2006 the Islamic Courts Union drove out the warlords and brought order to Mogadishu for the first time in 15 years. In December the Ethiopian army, backed by the United States, overthrew the Courts and installed the transitional government. The radical wing of the Courts, al-Shabaab, launched a guerrilla war. In August 2011 African Union peacekeepers from Uganda and Burundi drove the militants out of the capital.
Mogadishuon the map →
- 2005–2012
The pirates of Somalia
With no state and no coast guard, fishermen in Puntland and central Somalia, who suffered from illegal foreign fishing, turned to piracy. Bases at Eyl, Hobyo and Harardhere fitted out boats that seized merchant ships far out in the Indian Ocean for ransom. The peak came in 2009–2011. International naval flotillas, armed guards on ships and measures on land had almost ended the attacks by 2012.
Eylon the map →
- since 2012
The federal republic
In August 2012 a provisional constitution was adopted establishing the Federal Republic of Somalia, and in September parliament elected Hassan Sheikh Mohamud president. The country is divided into federal member states: Puntland, Jubaland, Galmudug and others. Al-Shabaab still carries out terrorist attacks: a truck bombing in Mogadishu on 14 October 2017 claimed more than 500 lives.
Mogadishuon the map →
- 2024–2026
The dispute over Ethiopia's access to the sea
On 1 January 2024 Ethiopia signed a memorandum with Somaliland under which it could obtain a stretch of coast for a naval base reportedly in exchange for possible recognition (the text of the memorandum has not been published). Mogadishu called this an assault on its sovereignty, and the region found itself on the brink of crisis. In December 2024, with Turkish mediation, the two sides signed the Ankara Declaration. The same year Somalia joined the East African Community. In 2026 parliament extended the terms of President Hassan Sheikh Mohamud and of the legislators from four to five years; the opposition, including former presidents, rejected the extension, and the presidential election was set for May 2027. After Israel's recognition of Somaliland (in 2026 Israel appointed an ambassador there), Mogadishu called the move an assault on Somalia's sovereignty.
Berberaon the map →
Rulers 103 rulers and heads of state
| Years | Name | Title | State |
|---|---|---|---|
| c. 1285–1330 | Umar Walashma | Founder, Sultan of Ifat | Ifat Sultanate |
| c. 1332–1344 | Haqq ad-Din II | Sultan of Ifat | Ifat Sultanate |
| c. 1386–1403 | Sa'ad ad-Din II | Sultan (centre at Zeila) | Ifat Sultanate |
| c. 1403–1415 | Mansur ibn Sa'ad ad-Din and Jamal ad-Din II | Sultans (Ifat/Adal) | Adal Sultanate |
| c. 1415–1422 | Sabr ad-Din III | Sultan, founder of Adal | Adal Sultanate |
| c. 1433–1471 | Muhammad ibn Badlay | Sultan | Adal Sultanate |
| c. 1471–1488 | Shams ad-Din ibn Muhammad | Sultan | Adal Sultanate |
| c. 1488–1518 | Muhammad ibn Azhar ad-Din | Sultan | Adal Sultanate |
| c. 1518–1526 | Abu Bakr ibn Muhammad | Sultan | Adal Sultanate |
| c. 1527–1554 | Umar Din | Sultan (nominal; Ahmad Gragn held real power) | Adal Sultanate |
| 1529–1543 | Ahmad ibn Ibrahim al-Ghazi (Ahmad Gragn) | Imam | Adal Sultanate |
| 1551–1567 | Nur ibn Mujahid | Emir | Adal Sultanate (Harar) |
| c. 1798–1848 | Yusuf Mahamud Ibrahim | Sultan | Geledi Sultanate |
| c. 1848–1878 | Ahmed Yusuf | Sultan | Geledi Sultanate |
| c. 1860–1927 | Osman Mahamud | Boqor (King) of the Majeerteen | Majeerteen Sultanate |
| c. 1878–1911 | Yusuf Ali Kenadid | Sultan | Sultanate of Hobyo |
| 1884–1888 | Frederick Mercer Hunter | Political Agent, then Resident | British Somaliland |
| 1888–1893 | Edward Vincent Stace | Resident | British Somaliland |
| 1889–1893 | Vincenzo Filonardi | Governor | Italian Somaliland |
| 1893–1896 | Charles William Henry Sealy | Resident | British Somaliland |
| 1896–1897 | Vincenzo Filonardi | Commissioner | Italian Somaliland |
| 1896–1897 | William Butler Ferris | Resident | British Somaliland |
| 1897–1902 | James Hayes Sadler | Resident, then Consul-General | British Somaliland |
| 1898–1905 | Emilio Dulio | Governor | Italian Somaliland |
| 1899–1920 | Mohammed Abdullah Hassan | Sayyid, Dervish leader | Dervish State |
| 1902–1905 | Harry Cordeaux | Acting Consul-General | British Somaliland |
| 1905–1906 | Eric Swayne | Consul-General | British Somaliland |
| 1906–1907 | Luigi Mercatelli | Commissioner-General | Italian Somaliland |
| 1907–1908 | Giuseppe Salvago Raggi | Commissioner-General | Italian Somaliland |
| c. 1908–1916 | Tommaso Carletti | Commissioner-General, then Governor | Italian Somaliland |
| 1909–1910 | Harry Cordeaux | Commissioner | British Somaliland |
| 1911–1914 | William Henry Manning | Commissioner | British Somaliland |
| 1914–1919 | Horace Archer Byatt | Commissioner | British Somaliland |
| 1916–1919 | Giacomo De Martino | Governor | Italian Somaliland |
| 1919–1920 | Giovanni Cerrina Feroni | Governor | Italian Somaliland |
| 1919–1925 | Geoffrey Francis Archer | Commissioner, then Governor | British Somaliland |
| 1923–1928 | Carlo Ricci Riveri | Governor | Italian Somaliland |
| 1925–1926 | Gerald Henry Summers | Governor | British Somaliland |
| c. 1926–1935 | Harold Baxter Kittermaster | Governor | British Somaliland |
| 1928–1931 | Cesare Maria De Vecchi | Governor | Italian Somaliland |
| 1931–1935 | Guido Corni | Governor | Italian Somaliland |
| 1935–1936 | Maurizio Rava | Governor | Italian Somaliland |
| c. 1935–1940 | Arthur Salisbury Lawrance | Commissioner, then Governor | British Somaliland |
| 1937–1940 | Ruggiero Santini | Governor (Italian East Africa) | Italian Somaliland |
| 1940–1941 | Gustavo Pesenti | Acting Governor | Italian Somaliland |
| 1940–1941 | Guglielmo Nasi | Italian Military Governor (occupation) | British Somaliland |
| c. 1941–1943 | Carlo De Simone | Italian Military Governor (occupation) | British Somaliland |
| 1941–1948 | William Eric Halstead Scupham | Chief Administrator (British military administration) | British military administration of Italian Somaliland |
| 1943–1948 | Arthur Reginald Chater | Military Governor | British Somaliland |
| 1948–1950 | Eric Armar Vully de Candole | Chief Administrator (British military administration) | British military administration of Italian Somaliland |
| c. 1948–1954 | Gerald Reece | Governor | British Somaliland |
| 1950–1953 | Giovanni Fornari | Administrator | Trust Territory of Somaliland |
| 1950–1960 | Italian UN Trusteeship | Trust territory | Trust Territory of Somaliland |
| 1954–1958 | Enrico Martino | Administrator | Trust Territory of Somaliland |
| c. 1954–1959 | Theodore Pike | Governor | British Somaliland |
| 1956–1960 | Abdullahi Issa | Prime Minister | Trust Territory of Somaliland |
| 1958–1960 | Enrico Anzilotti | Administrator | Trust Territory of Somaliland |
| c. 1959–1960 | Douglas Hall | Governor | British Somaliland |
| 1960 | Muhammad Haji Ibrahim Egal | Prime Minister | Somali Republic |
| 1960–1964 | Abdirashid Ali Shermarke | Prime Minister | Somali Republic |
| 1960–1967 | Aden Abdullah Osman Daar | President | Somali Republic |
| 1964–1967 | Abdirizak Haji Hussein | Prime Minister | Somali Republic |
| 1967–1969 | Abdirashid Ali Shermarke | President | Somali Republic |
| 1967–1969 | Muhammad Haji Ibrahim Egal | Prime Minister | Somali Republic |
| 1969 | Mukhtar Mohamed Hussein | Acting President | Somali Republic |
| 1969–1991 | Siad Barre | Chairman of the Supreme Revolutionary Council, President | Somali Democratic Republic |
| 1987–1990 | Mohamed Ali Samatar | Prime Minister | Somali Democratic Republic |
| 1990–1991 | Mohamed Hawadle Madar | Prime Minister | Somali Democratic Republic |
| 1991–1993 | Abdirahman Ahmed Ali Tuur | President | Somaliland (self-declared state; recognised by Israel since 2025) |
| 1991–1993 | Umar Arteh Ghalib | Prime Minister (de facto until 1997) | Somalia (civil war) |
| 1991–1997 | Ali Mahdi Muhammad | Interim President (disputed) | Somalia (civil war) |
| 1993–2002 | Muhammad Haji Ibrahim Egal | President | Somaliland (self-declared state; recognised by Israel since 2025) |
| 1995–1996 | Mohamed Farrah Aidid | Self-declared President | Somalia (civil war) |
| c. 1996–2000 | Hussein Mohamed Farrah Aidid | Self-declared President (faction leader) | Somalia (civil war) |
| 2000–2001 | Ali Khalif Galaydh | Prime Minister | Transitional National Government of Somalia |
| 2000–2004 | Abdiqasim Salad Hassan | President of the Transitional National Government | Somalia |
| 2001 | Osman Jama Ali | Acting Prime Minister | Transitional National Government of Somalia |
| 2001–2003 | Hassan Abshir Farah | Prime Minister | Transitional National Government of Somalia |
| 2002–2010 | Dahir Riyale Kahin | President | Somaliland (self-declared state; recognised by Israel since 2025) |
| 2003–2004 | Muhammad Abdi Yusuf | Prime Minister | Transitional National Government of Somalia |
| 2004–2007 | Ali Mohammed Ghedi | Prime Minister | Transitional Federal Government of Somalia |
| 2004–2008 | Abdullahi Yusuf Ahmed | President of the Transitional Federal Government | Somalia |
| 2007 | Salim Aliyow Ibrow | Acting Prime Minister | Transitional Federal Government of Somalia |
| 2007–2009 | Nur Hassan Hussein | Prime Minister | Transitional Federal Government of Somalia |
| 2008–2009 | Adan Mohamed Nuur Madobe | Acting President | Somalia |
| 2009–2010 | Omar Abdirashid Ali Sharmarke | Prime Minister | Transitional Federal Government of Somalia |
| 2009–2012 | Sharif Sheikh Ahmed | President of the Transitional Federal Government | Somalia |
| 2010 | Abdiwahid Elmi Gonjeh | Acting Prime Minister | Transitional Federal Government of Somalia |
| 2010–2011 | Mohamed Abdullahi Mohamed (Farmaajo) | Prime Minister | Transitional Federal Government of Somalia |
| 2010–2017 | Ahmed Mohamed Mohamoud Silanyo | President | Somaliland (self-declared state; recognised by Israel since 2025) |
| 2011–2012 | Abdiweli Mohamed Ali (Gaas) | Prime Minister | Transitional Federal Government of Somalia |
| 2012–2013 | Abdi Farah Shirdon | Prime Minister | Federal Republic of Somalia |
| 2012–2017 | Hassan Sheikh Mohamud | President | Federal Republic of Somalia |
| 2013–2014 | Abdiweli Sheikh Ahmed | Prime Minister | Federal Republic of Somalia |
| 2014–2017 | Omar Abdirashid Ali Sharmarke | Prime Minister | Federal Republic of Somalia |
| 2017–2020 | Hassan Ali Khaire | Prime Minister | Federal Republic of Somalia |
| 2017–2022 | Mohamed Abdullahi Farmaajo | President | Federal Republic of Somalia |
| 2017–2024 | Muse Bihi Abdi | President | Somaliland (self-declared state; recognised by Israel since 2025) |
| 2020 | Mahdi Mohammed Gulaid | Acting Prime Minister | Federal Republic of Somalia |
| 2020–2022 | Mohamed Hussein Roble | Prime Minister | Federal Republic of Somalia |
| 2022–present | Hassan Sheikh Mohamud | President (in 2026 parliament extended his term to May 2027; disputed by the opposition) | Federal Republic of Somalia |
| 2022–present | Hamza Abdi Barre | Prime Minister | Federal Republic of Somalia |
| 2024–present | Abdirahman Mohamed Abdullahi (Irro) | President | Somaliland (self-declared state; recognised by Israel since 2025) |