South Africa practiced apartheid for decades. The government passed laws saying that different races could not live in the same areas, have sex, get married, go to school together, go to the same beaches, or even go to the same hospitals. The schools, hospitals, and other places where non-white people were allowed to go were much worse than the places for white people.