Nelson Mandela was born in 1918 and became the first black president of South Africa from 1994 to 1999 after spending 27 years in prison for his opposition to apartheid. As president, he prioritized reconciliation policies to combat poverty and inequality resulting from the racist apartheid system that legally enforced racial segregation and discrimination in South Africa from 1948 to 1994. Apartheid denied non-white citizens basic rights and assigned them to inferior services, sparking widespread protests and violence until democratic elections in 1994 ended the apartheid system.