The son of a Scottish farmer and a Ghanaian mother, Jerry Rawlings entered the Ghana Air Force, graduating in 1969.
A decade later, as a senior officer in the air force, he overthrew a military government, handing over power to a civilian leader.
He oversaw the execution of several former heads of state and army generals for corruption but expressed some regret about the killings. Later the execution by firing squad of Supreme Court judges also left a stain on his legacy.
“I am still aware that we in Ghana do not like bloodshed,” he said at the time.
“I personally do not like it. I mean, I’d rather, let’s say, confiscate a man’s wealth and bring him down to the level to which he’s brought us just to give him a taste of what life has been, what he’s done to us.”
In 1981, he led a second coup and was the head of a military junta until introducing multi-party elections in 1992, when he was first elected president.
He stepped down in 2001 after serving two terms but continued to wield a strong influence in the country.
He began his time in power as a committed socialist but later introduced free-market reforms.
He ushered in a long period of political stability after a tumultuous series of coups in the 1960s and 1970s.
In later years, Rawlings campaigned for African nations to have their international debts written off.
He led two coups, first in 1979, before twice being elected president in multiparty polls.
A charismatic figure, he first seized power railing against corruption and was responsible for executing several former heads of state for their alleged graft and mismanagement.
He was also seen as a champion of the poor but came to be criticised for alleged human rights abuses.
He died in hospital in the capital, Accra, after a short illness.
A week of national mourning has been announced in Ghana for the country’s longest-serving leader, who oversaw the transition to multiparty elections in what is now one of Africa’s most stable democracies.
Ghana’s former President Jerry John Rawlings died at the age of 73.