Ghana's former president Jerry Rawlings, a member of the radical and charismatic generation of figures who emerged in West Africa in the 1980s, died on Thursday. He was 73.
The former air force flight lieutenant led two coups, in 1979 and 1981, railing against corruption and stamping his authority on the nation before ushering in democracy.
Under his uncompromising command, several former heads of state and army bigwigs were executed, but to many of Ghana's poor, Rawlings was a champion.
The son of a Scottish father and Ghanaian mother, the larger-than-life figure became a national figurehead as he led Ghana for 20 years until 2001, being voted in as president at the ballot box in 1992 and re-elected in 1996.
Ghana's President Nana Akufo-Addo said that Rawlings had died "after a short illness" on Thursday morning at a hospital in Accra.
"A great tree has fallen, and Ghana is poorer for this loss," the president said.
Mr Akufo-Addo ordered flags in the country to be lowered to half staff for seven days of national mourning from Friday and said he was suspending campaigning for the election in December.
The candidate from Rawlings' National Democratic Congress, John Mahama, wrote on Twitter that he was also halting his rallies after "news of the passing of our founder and former president of Ghana, Jerry John Rawlings".
"May his soul rest In peace," said Mr Mahama, who is also a former president of Ghana.
Rawlings' family said that funeral arrangements would be announced in due course and asked for "privacy at this difficult moment".
African Union Commission chairman Moussa Faki Mahamat, said: "Africa has lost a stalwart of Pan-Africanism and a charismatic continental statesman.
"My sincere condolences to his family, the people and the government of Ghana," he said on Twitter.
Nigerian President Muhammadu Buhari said "the entire African continent will sorely miss the sterling qualities of the great leader".
"The passion, discipline and moral strength that the former Ghanaian leader employed to reposition his country over many years continue to reverberate across the continent and beyond," Mr Buhari said.
Rawlings got his first taste of power in 1979 when he banded together with other junior officers frustrated at widespread corruption to take control.
He quickly handed the reins to an elected president but was soon back at the top after another coup on December 31, 1981.
Starting out as a populist inspired by the left-wing policies of the Soviet Union and Cuba, he eventually turned to free-market economics to boost Ghana's suffering economy.
He was a contemporary and later a friend of Thomas Sankara – Africa's Che Guevara – the Marxist-Leninist revolutionary who came to power in Burkina Faso in 1983 at the age of 33.
But Rawlings also heeded the calls for multiparty democracy that swept Africa in the early 1990s and in 1992 held the first elections in his homeland since 1979.
With all the levers of power at his disposal, he held off the opposition and then claimed re-election four years later in 1996.
He finally left office for good in 2001 after seeing the NDC lose its grip on power when his vice president lost at the polls.