Apartheid was a system of institutionalized racial segregation and discrimination in South Africa between 1948 and 1991, where the white minority government passed laws reserving certain areas for white use, segregating education, political representation and other areas of interaction. It aimed to separate races and treat black South Africans as foreigners. The system was condemned internationally and dismantled through activism and sanctions, leading to democratic elections in 1994.