Nelson Mandela spent decades fighting South Africa's official policy of apartheid. That fight led to him being imprisoned for 27 years. In 1994, he was inaugurated South Africa's first president elected by all races.