The African National Congress ( ANC ) led the opposition to apartheid and many top ANC leaders , such as Nelson MANDELA , spent decades in South Africa 's prisons .