Nelson Mandela was the first black president of South Africa, elected democratically after serving 27 years in prison for his anti-apartheid activism. As the leader of the African National Congress, Mandela worked to end apartheid and establish equal rights for blacks in South Africa through non-violent protest. After retiring from the presidency, Mandela continued his advocacy until apartheid was finally abolished, establishing a unified, democratic nation.