South Africa is next to Namibia , Botswana , Zimbabwe , Mozambique , Lesotho and Swaziland . To the north lie Namibia , Botswana and Zimbabwe ; to the east are Mozambique and Swaziland ; while Lesotho is an enclave surrounded by South African territory .