Nelson Mandela, a beacon of freedom, embodied resilience through his fight against apartheid and 27 years of imprisonment.