Nelson Mandela, who emerged from 27 years in apartheid prisons to help guide South Africa to democracy, died on Thursday.