Apartheid officially began in South Africa in the early 20th century and ended in 1992. It was a system of racial segregation and discrimination enforced through legislation by the white minority government against the non-white majority. Under apartheid, people were classified by race and had to live in separate areas, and black people faced legal restrictions and discrimination, being denied basic rights and services that whites received.