A vast land of desert and semidesert along the southwestern coast of Africa, Namibia covers 825,418 sq km (318,696 sq mi). Comparatively, the area occupied by Namibia is slightly more than half the size of the state of Alaska. It extends 1,498 km (931 mi) SSE-NNW and 880 km (547 mi) ENE-WSW (excluding the Caprivi Strip). Namibia is bordered by Angola and Zambia in the N , by Botswana in the E , by South Africa in the SE and S , and by the Atlantic Ocean to the W , with a total land boundary length of 3,936 km (2,446 mi) and a coastline of 1,572 km (977 mi).
The enclave of Walvis Bay (1,124 sq km/434 sq mi) was administered from 1977 to 1994 as part of South Africa's Cape Province, as were 13 offshore islands. Walvis Bay was reincorporated into Namibia on 1 March 1994. Namibia's capital city, Windhoek, is in the center of the country.