<human>:  How many years did apartheid last in South Africa?
<bot>: Apartheid was a policy of racial segregation in South Africa, and lasted from 1948 to 1994. It was implemented by the National Party and its predecessors, and maintained by the ruling National Party and its successors.