Windhoek is the capital and largest city of Namibia, located in the central part of the country. It has been the capital since 1990 when Namibia gained independence from South Africa. The city serves as the administrative, commercial, and industrial center of the country.