Tanzania: a history from Olduvai to the union

Home to Olduvai Gorge, Kilimanjaro and the Serengeti, Tanzania was formed in 1964 by the union of Tanganyika and Zanzibar, once the seat of Oman's sultans. It was led to independence by Julius Nyerere.

By Last reviewed

Tanzania
Tanzania and its neighbours. Borders approximate.

Key facts

Capital
Dodoma (Dar es Salaam is the largest city)
Independence
Tanganyika 9 December 1961; Zanzibar 10 December 1963; union 26 April 1964
President
Samia Suluhu Hassan, since March 2021
Population
About 68 million
Languages
Swahili and English
Religion
Christian and Muslim communities of similar size; Zanzibar is almost entirely Muslim

Through the ages

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

  1. Early humans70000 BCE to 500 CE
  2. Swahili city-states and Kilwa800 CE to 1505
  3. Portuguese and Omani coast1505 to 1885
  4. German East Africa1885 to 1919
  5. British Tanganyika and Zanzibar1919 to 1964
  6. United Republic of Tanzania1964 to today

Timeline

  1. c. 1000
    Civilisation

    Kilwa

    Kilwa Kisiwani grows into the richest Swahili city, controlling the gold trade from the south.

  2. 1331
    Culture and faith

    Ibn Battuta at Kilwa

    The Moroccan traveller Ibn Battuta visits Kilwa and praises it as one of the most beautiful cities in the world.

  3. 1505
    Wars and conflict

    The Portuguese sack Kilwa

    A Portuguese fleet attacks Kilwa and builds a fort there.

  4. 1698
    Empires and dynasties

    Omani power

    Oman drives the Portuguese from the coast north of Mozambique.

  5. 1840
    Empires and dynasties

    Zanzibar capital of Oman

    Sultan Said bin Sultan moves his capital from Muscat to Zanzibar, which grows rich on cloves and the slave trade.

  6. 1873
    Politics

    Slave market closed

    Under British pressure, Zanzibar's sultan closes the great slave market.

  7. 1885
    Empires and dynasties

    German East Africa

    Germany claims the mainland, later called Tanganyika.

  8. 27 August 1896
    Wars and conflict

    The shortest war

    British warships bombard Zanzibar's palace in a war that lasts less than an hour.

  9. 1905 to 1907
    Wars and conflict

    Maji Maji war

    Peoples of the south rise against German forced cotton growing. Famine and war kill perhaps 200,000 or more.

  10. 1919
    Empires and dynasties

    British Tanganyika

    After the First World War, Britain takes over Tanganyika as a mandate.

  11. 1959
    Culture and faith

    Olduvai discoveries

    Mary Leakey finds an early hominin skull at Olduvai Gorge, one of the world's most important sites for human origins.

  12. 9 December 1961
    Independence

    Tanganyika independent

    Tanganyika becomes independent under Julius Nyerere.

  13. January 1964
    Politics

    Zanzibar revolution

    A revolution overthrows the sultan of Zanzibar, a month after independence. Thousands of Arabs and South Asians are killed or flee.

  14. 26 April 1964
    Politics

    The union

    Tanganyika and Zanzibar unite to form Tanzania.

  15. 1967
    Politics

    Arusha Declaration

    Nyerere launches Ujamaa, African socialism, moving millions into collective villages.

  16. 1979
    Wars and conflict

    War with Idi Amin

    After Uganda invades, Tanzanian forces drive out Idi Amin.

  17. 1985
    Politics

    Nyerere steps down

    Nyerere hands power to Ali Hassan Mwinyi, a Zanzibari Muslim.

  18. March 2021
    Politics

    Samia Suluhu Hassan

    John Magufuli dies and Samia Suluhu Hassan becomes Tanzania's first woman president.

Olduvai and the coast

Tanzania stretches from the Indian Ocean to the great lakes of Victoria and Tanganyika, and holds Kilimanjaro, Africa’s highest mountain, and the plains of the Serengeti. At Olduvai Gorge, Louis and Mary Leakey found stone tools and fossils that made it one of the most important places for the study of human origins. From around the eighth century Swahili trading towns grew along the coast, and Islam spread among them. The greatest was Kilwa Kisiwani, which controlled the gold trade from the south; its Great Mosque was one of the largest in East Africa, and in 1331 the Moroccan traveller Ibn Battuta called Kilwa one of the most beautiful cities in the world.

Portugal, Oman and Zanzibar

In 1505 the Portuguese sacked Kilwa and built a fort. In the late seventeenth century Oman drove them from the coast. In 1840 Sultan Said bin Sultan moved his capital from Muscat to Zanzibar, which grew rich on cloves and the slave trade; caravans brought ivory and captives from the interior, and the Zanzibar slave market became notorious. South Asian merchants financed much of the trade. Under British pressure the market was closed in 1873, and in 1896 a British bombardment of the palace ended a succession dispute in the shortest war in history.

German and British rule

Germany claimed the mainland in 1885. Its harsh rule led to the Maji Maji war of 1905 to 1907, when peoples of the south rose against forced cotton growing, believing sacred water would protect them from bullets; war and famine killed perhaps 200,000 or more. After the First World War Britain took over Tanganyika, while Zanzibar remained a British protectorate under its sultans.

Nyerere and the union

Tanganyika became independent on 9 December 1961 under Julius Nyerere, a teacher. Zanzibar became independent in December 1963, but in January 1964 a revolution overthrew the sultan, and thousands of Arabs and South Asians were killed or fled. On 26 April 1964 Tanganyika and Zanzibar united as Tanzania. Nyerere’s Arusha Declaration of 1967 launched Ujamaa, African socialism, which failed economically but built a strong national identity and a common language, Swahili. Tanzania supported liberation movements across southern Africa and in 1979 drove out Uganda’s Idi Amin. Nyerere stepped down in 1985. In 2021 Samia Suluhu Hassan became the first woman president. An election in October 2025 was followed by deadly protests. Tanzania and Pakistan are fellow Commonwealth members.

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

Landmarks and heritage

9th to 19th centuries

Kilwa Kisiwani and Songo Mnara

South coast

Ruins of the great Swahili trading city, including its Great Mosque. A UNESCO World Heritage Site.

19th century

Stone Town of Zanzibar

Zanzibar

A Swahili town of carved doors and narrow lanes. A UNESCO World Heritage Site.

Natural

Kilimanjaro National Park

North-east

Africa's highest mountain, 5,895 m. A UNESCO World Heritage Site.

Natural

Serengeti National Park

North

Scene of the great wildebeest migration. A UNESCO World Heritage Site.

Terms you will meet in the news

Ujamaa
Nyerere's African socialism, based on family-style cooperation.
Mwalimu
Swahili for teacher, the title by which Nyerere is remembered.
Maji Maji
Sacred water that fighters believed would protect them from German bullets.
Zanzibar
The island state that joined Tanganyika in 1964 and keeps its own government.

Quick answers

How did Tanzania get its name?

From combining Tanganyika and Zanzibar when they united on 26 April 1964.

What links Zanzibar with Oman?

Zanzibar was ruled by Oman's sultans, who moved their capital there in 1840. The sultanate lasted until the 1964 revolution.

Who was Julius Nyerere?

Tanzania's independence leader and first president, a teacher known as Mwalimu, who led the country from 1961 to 1985.

What links Tanzania and Pakistan?

Both are Commonwealth members, and Tanzania has a long-established community of South Asian origin, including Khoja and Bohra Muslims.

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.