Namibia, officially the Republic of Namibia, is a country in southern Africa whose western border is the Atlantic Ocean. It gained independence from South Africa on 21 March 1990, following the Namibian War of Independence. Its capital and largest city is Windhoek.
At 824,292 km2 (318,261 sq mi), Namibia is the world's thirty-fourth largest country (after Venezuela). After Mongolia, Namibia is the least densely populated country in the world (2.5 inhabitants per square kilometre (6.5 /sq mi)). Being situated between the Namib and the Kalahari deserts, Namibia is the country with the least rainfall in sub-Saharan Africa.