Apartheid was a system of racial segregation and discrimination in South Africa that separated people into four groups: white, black, colored, and Asian. It gave whites control over the country despite most of the population being black. Some apartheid laws prohibited interracial relationships and enforced separate education systems. Apartheid began as European settlers colonized South Africa and divided ethnic groups. It ended in the 1990s as the president helped pass laws dismantling the system and Nelson Mandela was elected president after the end of apartheid, though its effects like poverty still impact South Africa today.