<human>:  How many years did apartheid last in South Africa?
<bot>: Apartheid was a system of racial segregation in South Africa. It lasted from 1948 until 1994. It was a form of government that separated people into two races, white and black. The purpose of apartheid was to keep the races separate and to keep the races from intermarrying.