(CNN)- Nelson Mandela, the revered statesman who emerged from prison after 27 years to lead South Africa out of decades of apartheid, has died, South African President Jacob Zuma announced late Thursday. He was 95.
The former president battled health issues in recent months, including a recurring lung infection that led to numerous hospitalizations.
With advancing age and bouts of illness, Mandela retreated to a quiet life at his boyhood home in the nation's Eastern Cape Province, where he said he was most at peace.
Despite rare public appearances, he held a special place in the nation's consciousness.
In a nation healing from the scars of apartheid, Mandela became a moral compass.
His defiance of white minority rule and incarceration for fighting against segregation focused the world's attention on apartheid, the legalized racial segregation enforced by the South African government until 1994.
In his lifetime, he was a man of complexities. He went from a militant freedom fighter, to a prisoner, to a unifying figure, to an elder statesman.
Years after his 1999 retirement from the presidency, Mandela was considered the ideal head of state. He became a yardstick for African leaders, who consistently fell short when measured against him.
Warm, lanky and charismatic in his silk, earth-toned dashikis, he was quick to admit to his shortcomings, endearing him further in a culture in which leaders rarely do.
His steely gaze disarmed opponents. So did his flashy smile.
Former South African President F.W. de Klerk, who was awarded the Nobel Peace Prize with Mandela in 1993 for transitioning the nation from a system of racial segregation, described their first meeting.
"I had read, of course, everything I could read about him beforehand. I was well-briefed," he said last year.
"I was impressed, however, by how tall he was. By the ramrod straightness of his stature, and realized that this is a very special man. He had an aura around him. He's truly a very dignified and a very admirable person."
For many South Africans, he was simply Madiba, his traditional clan name. Others affectionately called him Tata, the Xhosa word for father.
Mandela last appeared in public during the 2010 World Cup hosted by South Africa. His absences from the limelight and frequent hospitalizations left the nation on edge, prompting Zuma to reassure citizens every time he fell sick.
"Mandela is woven into the fabric of the country and the world," said Ayo Johnson, director of Viewpoint Africa, which sells content about the continent to media outlets.
When he was around, South Africans had faith that their leaders would live up to the nation's ideals, according to Johnson.
"He was a father figure, elder statesman and global ambassador," Johnson said. "He was the guarantee, almost like an insurance policy, that South Africa's young democracy and its leaders will pursue the nation's best interests."
There are telling nuggets of Mandela's character in the many autobiographies about him.
An unmovable stubbornness. A quick, easy smile. An even quicker frown when accosted with a discussion he wanted no part of.