Somalia: a history from the Land of Punt to the federal republic

Somalia's coast traded with Egypt, Arabia and India for thousands of years. In 1993, 24 Pakistani peacekeepers were killed in Mogadishu serving the UN, one of Pakistan's heaviest losses in peacekeeping.

By Last reviewed

Somalia
Somalia and its neighbours. Borders approximate.

Key facts

Capital
Mogadishu
Independence
1 July 1960, union of British Somaliland and Italian Somalia
President
Hassan Sheikh Mohamud, since May 2022
Population
About 19 million
Languages
Somali and Arabic
Link with Pakistan
Pakistani troops served in the UN missions of the 1990s; 24 were killed in Mogadishu on 5 June 1993

Through the ages

The main periods of Somalia's history, 2500 BCE to today. Recent centuries are drawn wider so they can be read.

  1. Land of Punt and ancient trade2500 BCE to 600 CE
  2. Early Islam and coastal sultanates615 CE to 1500
  3. Ajuran and Adal1300 to 1700
  4. Colonial partition1884 to 1960
  5. Somali Republic and Siad Barre1960 to 1991
  6. Collapse and rebuilding1991 to today

Timeline

  1. c. 1470 BCE
    Economy

    Expedition to Punt

    Queen Hatshepsut of Egypt sends ships to the Land of Punt, which many historians place on the Horn of Africa.

  2. c. 615 CE
    Culture and faith

    Islam arrives

    Islam reaches the Somali coast very early, through trade across the Gulf of Aden.

  3. 1269
    Culture and faith

    Mogadishu mosques

    Mosques of the Mogadishu Sultanate, such as Fakr ad-Din, are built.

  4. 1331
    Culture and faith

    Ibn Battuta

    Ibn Battuta visits Mogadishu and describes a rich trading city.

  5. c. 1400
    Empires and dynasties

    The Ajuran

    The Ajuran Sultanate controls the southern coast and its wells, trading with Arabia, India and China.

  6. c. 1418
    Economy

    Chinese fleet

    Ships of Admiral Zheng He's fleet visit Mogadishu and Brava.

  7. 1884
    Empires and dynasties

    British Somaliland

    Britain takes the north as a protectorate. Italy, France and Ethiopia take other Somali lands.

  8. 1899 to 1920
    Wars and conflict

    The Dervish state

    Mohammed Abdullah Hassan leads a twenty-year resistance against Britain, Italy and Ethiopia.

  9. 1 July 1960
    Independence

    Independence

    British Somaliland and Italian Somalia unite as the Somali Republic.

  10. 1969
    Politics

    Siad Barre

    General Mohamed Siad Barre seizes power and declares a socialist state.

  11. 1977
    Wars and conflict

    Ogaden war

    Somalia invades Ethiopia's Ogaden region and is defeated in 1978.

  12. 1988
    Wars and conflict

    War in the north

    Barre's forces bomb Hargeisa, killing thousands.

  13. January 1991
    Wars and conflict

    Collapse

    Barre is overthrown and the state collapses into clan warfare and famine.

  14. 1992
    Treaties and agreements

    UN missions

    UN forces, including a large Pakistani contingent, deploy to protect food aid.

  15. 5 June 1993
    Wars and conflict

    Pakistani peacekeepers killed

    Twenty-four Pakistani UN peacekeepers are killed in Mogadishu. In October Pakistani forces help rescue US troops trapped in the city.

  16. 2006
    Wars and conflict

    Islamic Courts and al-Shabaab

    The Islamic Courts Union takes Mogadishu before Ethiopian forces drive it out. Al-Shabaab grows from its militia.

  17. 2012
    Politics

    Federal government

    A new federal government and parliament are formed.

  18. 2022
    Politics

    Hassan Sheikh Mohamud

    Hassan Sheikh Mohamud returns to the presidency and launches an offensive against al-Shabaab.

Punt and the trade coast

Somalia occupies the Horn of Africa, with the longest coastline on the African mainland, facing the Gulf of Aden and the Indian Ocean. Ancient Egyptian fleets sailed to a land of incense, myrrh and gold called Punt, which many historians place on the Horn. At Laas Geel, near Hargeisa, herders painted cattle on cave walls about five thousand years ago. For centuries Somali ports traded frankincense, livestock and ivory with Arabia, Persia and India.

Islam and the sultanates

Islam reached the Somali coast very early, through traders crossing the Gulf of Aden, and Somalis became almost entirely Muslim. Coastal cities such as Mogadishu, Merca, Brava and Zeila grew rich; when Ibn Battuta visited Mogadishu in 1331 he described a prosperous city. The Ajuran Sultanate controlled the south’s coast and water wells, trading as far as China, and ships of Zheng He’s fleet called in the 1410s. In the north-west, the Adal Sultanate fought the Christian Ethiopian kingdom.

Partition and resistance

In the late nineteenth century the Somali lands were divided: Britain took the north, Italy the south, France the area around Djibouti, while Ethiopia took the Ogaden and Britain gave Kenya the Northern Frontier District. From 1899 to 1920 Mohammed Abdullah Hassan led the Dervish state in a long resistance until British air raids crushed it. On 1 July 1960 British Somaliland and Italian Somalia united as the independent Somali Republic.

Barre and collapse

In 1969 General Mohamed Siad Barre seized power. His dream of a Greater Somalia led to a disastrous invasion of Ethiopia’s Ogaden in 1977. His rule became brutal, and in 1988 his forces bombed Hargeisa in the north. In January 1991 he was overthrown and the state collapsed. The north declared independence as Somaliland. Famine and clan war killed hundreds of thousands, and UN missions came to protect food aid. Pakistan sent one of the largest contingents. On 5 June 1993, 24 Pakistani peacekeepers were killed in an ambush in Mogadishu, and in October 1993 Pakistani and Malaysian forces helped rescue US troops trapped in the city. The UN left in 1995.

Rebuilding

In 2006 the Islamic Courts Union briefly brought order to Mogadishu before Ethiopian forces drove it out, and the armed group al-Shabaab grew from its militia, carrying out deadly attacks. African Union troops have helped the government fight back. A federal government was formed in 2012, and Hassan Sheikh Mohamud returned to the presidency in 2022. Somalia joined the East African Community in 2024. Pakistan recognises Somalia’s unity and territorial integrity, and the two countries are fellow members of the OIC.

For our latest reporting on Somalia, see the news listed on this page.

Landmarks and heritage

About 5,000 years old

Laas Geel

Near Hargeisa

Cave paintings of cattle and herders, among the best preserved in Africa.

1269

Fakr ad-Din Mosque

Mogadishu

One of the oldest mosques in East Africa.

Early 20th century

Taleh fortress

Sool region

The stronghold of the Dervish state.

Terms you will meet in the news

Punt
The land of incense and gold visited by ancient Egyptian fleets, probably on the Horn of Africa.
Al-Shabaab
An armed group that has fought the government since the late 2000s.
UNOSOM
The UN Operations in Somalia, from 1992 to 1995.
Clan
Family lineages that remain central to Somali society and politics.

Quick answers

What happened to Pakistani peacekeepers in Somalia?

Pakistan sent a large contingent to the UN mission in Somalia. On 5 June 1993, 24 Pakistani soldiers were killed in an ambush in Mogadishu, and in October 1993 Pakistani forces helped rescue trapped US troops.

What is Somaliland?

The former British north, which declared independence in 1991. It governs itself, but Pakistan, like most countries, recognises Somalia's unity and territorial integrity.

Why did Somalia collapse in 1991?

After years of war against Siad Barre's rule, he was overthrown in January 1991, and rival clan militias fought over the country.

Is Somalia a Muslim country?

Almost all Somalis are Sunni Muslims. Somalia is a member of the OIC and the Arab League.

Sources and further reading

Compiled by The Indus Compass from the sources above and standard reference works, and reviewed 29 November 2026. Dates before the modern era are approximate and some are debated by historians. Spotted a mistake? Tell the newsroom and we will correct it.