Namibia: a history from Twyfelfontein to independence

One of the least crowded countries on earth, Namibia suffered the first genocide of the 20th century under German rule. It won independence from South Africa in 1990 and is a stable democracy.

By Last reviewed

Namibia
Namibia and its neighbours. Borders approximate.

Key facts

Capital
Windhoek
Independence
21 March 1990
President
Netumbo Nandi-Ndaitwah, since March 2025, the first woman to hold the post
Population
About 3 million
Languages
English (official), with Oshiwambo, Afrikaans, Nama and others
Geography
Home to the Namib, among the oldest deserts in the world

Through the ages

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

  1. San hunter-gatherers30000 BCE to 1500
  2. Herero, Nama and Ovambo peoples1500 to 1884
  3. German South West Africa1884 to 1915
  4. South African rule1915 to 1990
  5. Independent Namibia1990 to today

Timeline

  1. c. 27000 BCE
    Culture and faith

    Apollo 11 Cave

    Painted stone slabs from Apollo 11 Cave in the south are among the oldest known art in Africa.

  2. c. 4000 BCE
    Culture and faith

    Twyfelfontein

    San hunter-gatherers carve thousands of animals and footprints into the rocks of Twyfelfontein.

  3. 1486
    Empires and dynasties

    Diogo Cão

    The Portuguese navigator Diogo Cão raises a stone cross at Cape Cross.

  4. c. 1600
    Civilisation

    Herero and Ovambo

    Herero cattle herders move into central Namibia, and Ovambo farmers settle the north.

  5. 1884
    Empires and dynasties

    German South West Africa

    Germany declares a protectorate after a merchant buys land at Lüderitz Bay.

  6. 1904 to 1908
    Wars and conflict

    The genocide

    German troops crush Herero and Nama risings. Most Herero and about half the Nama die, many driven into the desert or held in camps.

  7. 1908
    Economy

    Diamonds

    Diamonds are found near Lüderitz, and the Germans close off a huge Forbidden Zone.

  8. 1915
    Wars and conflict

    South African conquest

    South African forces take the colony in the First World War. It becomes a mandate under South Africa in 1920.

  9. 1920
    Empires and dynasties

    League of Nations mandate

    South Africa receives a League of Nations mandate to govern South West Africa.

  10. 1960
    Politics

    SWAPO

    The South West Africa People's Organisation is founded to fight for independence.

  11. 26 August 1966
    Wars and conflict

    Liberation war begins

    SWAPO fighters clash with South African forces at Omugulugwombashe.

  12. 1971
    Treaties and agreements

    World Court ruling

    The International Court of Justice rules that South Africa's presence in Namibia is illegal.

  13. 1988
    Treaties and agreements

    Peace accords

    After the battle of Cuito Cuanavale in Angola, agreements link Cuban withdrawal from Angola to Namibia's independence.

  14. 21 March 1990
    Independence

    Independence

    Namibia becomes independent, with Sam Nujoma as president.

  15. 1994
    Treaties and agreements

    Walvis Bay

    South Africa hands over the port of Walvis Bay.

  16. 2004
    Politics

    Hifikepunye Pohamba

    Sam Nujoma steps down and Hifikepunye Pohamba is elected, a peaceful handover within SWAPO.

  17. 2015
    Politics

    Hage Geingob

    Hage Geingob, the first prime minister, becomes president. He dies in office in 2024.

  18. 2021
    Politics

    German apology

    Germany recognises the 1904 to 1908 killings as genocide and offers development funds, a deal many Herero and Nama reject.

  19. 21 March 2025
    Politics

    First woman president

    Netumbo Nandi-Ndaitwah becomes Namibia's first woman president.

Rock art and herders

Namibia lies on Africa’s south-west coast, a land of deserts, dry savanna and the great Etosha salt pan. Its first people, the San, lived as hunter-gatherers for tens of thousands of years. Painted slabs from Apollo 11 Cave are among the oldest art in Africa, and at Twyfelfontein the San carved thousands of animals and footprints into the rocks. Over the past few centuries the Nama herders lived in the south, Herero cattle herders moved into the centre, and Ovambo farmers settled the wetter north, where most Namibians live today.

German rule and genocide

The Portuguese navigator Diogo Cão landed at Cape Cross in 1486, but Europeans took little interest in the dry coast for centuries. In 1884 Germany declared a protectorate after a Bremen merchant bought land at Lüderitz Bay. German settlers took the best grazing land and cattle. In 1904 the Herero rose against German rule, followed by the Nama. General Lothar von Trotha ordered that Herero be driven into the Omaheke desert, and survivors were held in concentration camps such as Shark Island. Most of the Herero and about half of the Nama died, in what historians call the first genocide of the twentieth century. In 2021 Germany recognised it as genocide. Diamonds were found near Lüderitz in 1908.

South African rule

South African forces took the colony in 1915, and after the war it became a League of Nations mandate under South Africa, which later imposed apartheid there. In 1960 the South West Africa People’s Organisation, SWAPO, was founded, and in 1966 it began an armed struggle. The United Nations ended the mandate, and in 1971 the International Court of Justice ruled South Africa’s presence illegal. Pakistan, like most UN members, supported Namibia’s right to independence. After the battle of Cuito Cuanavale in Angola, agreements in 1988 linked Cuba’s withdrawal from Angola to Namibian independence.

Independent Namibia

Namibia became independent on 21 March 1990 under SWAPO’s leader Sam Nujoma, with one of Africa’s most democratic constitutions. South Africa handed over Walvis Bay in 1994. Namibia exports diamonds, uranium and fish, and is known for its wildlife conservation, including community-run conservancies. Land ownership remains very unequal, a legacy of colonial rule. In March 2025 Netumbo Nandi-Ndaitwah became Namibia’s first woman president. Namibia and Pakistan are fellow members of the Commonwealth.

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

Landmarks and heritage

Thousands of years

Twyfelfontein

Kunene region

One of Africa's largest collections of rock engravings. A UNESCO World Heritage Site.

Natural

Namib Sand Sea

Atlantic coast

Huge red dunes, including those of Sossusvlei. A UNESCO World Heritage Site.

1908 to 1956

Kolmanskop

Near Lüderitz

A diamond-mining town abandoned to the sand.

Natural

Etosha National Park

North

A vast salt pan and one of Africa's great wildlife parks.

Terms you will meet in the news

SWAPO
The liberation movement that has governed Namibia since independence.
Herero
A cattle-herding people of central Namibia, victims of the 1904 genocide.
Namib
A coastal desert believed to be among the oldest in the world.
Skeleton Coast
The foggy northern coast, famous for shipwrecks.

Quick answers

What happened in Namibia from 1904 to 1908?

German colonial troops crushed Herero and Nama uprisings with extreme brutality. Most Herero and about half the Nama died. Germany recognised it as genocide in 2021.

When did Namibia become independent?

On 21 March 1990, after decades of South African rule and a liberation war led by SWAPO.

Who is Namibia's president?

Netumbo Nandi-Ndaitwah, sworn in on 21 March 2025 as the country's first woman president.

What links Namibia and Pakistan?

Both are Commonwealth members, and Pakistan supported Namibia's independence at the United Nations.

What is the capital of Namibia?

Windhoek, in the central highlands.

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.