Namibia ( ( listen), ), officially the Republic of Namibia (German: Republik Namibia ; Afrikaans: Republiek van Namibië) is a country in southern Africa whose western border is the Atlantic Ocean. It shares land borders with Zambia and Angola to the north, Botswana to the east and South Africa to the south and east. Although it does not border Zimbabwe, less than 200 metres of the Zambezi River (essentially a small bulge in Botswana to achieve a Botswana/Zambia micro-border) separates the two countries. Namibia gained independence from South Africa on 21 March 1990, following the Namibian War of Independence. Its capital and largest city is Windhoek, and it is a member state of the United Nations (UN), the Southern African Development Community (SADC), the African Union (AU), and the Commonwealth of Nations.
The dry lands of Namibia were inhabited since early times by the San, Damara, and Nama peoples. Since about the 14th century, immigrating Bantu peoples arrived as part of the Bantu expansion. Since then the Bantu groups in total, known as the Ovambo people, have dominated the population of the country and since the late 19th century, have constituted a large majority.
In 1878 the Cape of Good Hope had annexed the port of Walvis Bay and the offshore Penguin Islands; these became an integral part of the new Union of South Africa at its creation in 1910. In 1884, the German Empire established rule over most of the territory as a protectorate (Schutzgebiet). It began to develop infrastructure and farming, and maintained this German colony until 1915, when South African forces defeated its military. In 1920, after the end of World War I, the League of Nations mandated the country to the United Kingdom, under administration by South Africa. It imposed its laws, including racial classifications and rules.
From 1948, with the National Party elected to power, South Africa applied apartheid also to what was then known as South West Africa.
In the later 20th century, uprisings and demands for political representation by native African political activists seeking independence resulted in the UN assuming direct responsibility over the territory in 1966, but South Africa maintained de facto rule. In 1973 the UN recognised the South West Africa People's Organisation (SWAPO) as the official representative of the Namibian people; the party is dominated by the Ovambo, who are a large majority in the territory. Following continued guerrilla warfare, South Africa installed an interim administration in Namibia in 1985. Namibia obtained full independence from South Africa in 1990. However, Walvis Bay and the Penguin Islands remained under South African control until 1994.
Namibia has a population of 2.1 million people and a stable multi-party parliamentary democracy. Agriculture, herding, tourism and the mining industry – including mining for gem diamonds, uranium, gold, silver, and base metals – form the basis of its economy. The large, arid Namib Desert has resulted in Namibia being overall one of the least densely populated countries in the world.