Cape Town is the second-most populous city in South Africa, after Johannesburg, and also the legislative capital of South Africa.