Peru's Alberto Fujimori, a one-time university dean, rose to the presidency, waged a bloody campaign against insurgents and was sentenced to 25 years in prison for corruption and rights abuses.
The ailing 79-year-old, loved by many for going after the rebels but hated by others for the ruthless, authoritarian way he governed, received a "humanitarian pardon" on Sunday.
His decade as president from 1990 and the years that followed were marked by a dramatic series of sieges, massacres and escapades.
They ended with him in jail, a frail, gray figure crippled by back pain and high blood pressure.
A descendant of Japanese immigrants, Fujimori was a marginal figure among political parties but cultivated the support of the armed forces.
Under him and his hardline security chief Vladimiro Montesinos, state forces virtually wiped out the leftist Shining Path and Tupac Amaru rebels.
Fujimori also clamped down hard on his political rivals. In 1992, he staged an internal coup, dissolving the legislature with the knowledge of only Montesinos and military chiefs.
"Act first, tell people about it later," he was quoted as saying.
One of the most dramatic episodes of his time in power was a four-month hostage ordeal at the Japanese embassy in Lima from December 1996.
Commandos ended up raiding the embassy, saving nearly all the VIPs held by Tupac Amaru guerrillas and killing the 14 hostage-takers.
That strengthened Fujimori's reputation for fighting terrorism with a firm hand.
At the same time, he won popular support for boosting the economy of the South American country, a major mineral exporter.
His neo-liberal economic policies won him the support of the ruling class and international financial institutions.
But the dark flipside of his supposed success was revealed when he was found guilty of human rights violations for the killings of suspects by death squads.
Fujimori's downfall began in 2000 after Montesinos was exposed for corruption.
The president fled to Japan and sent a fax announcing his resignation.
Congress voted to sack him instead and ban him from public office for 10 years.
He was eventually arrested when he set foot in Chile and extradited back to Peru for trial.
A court held him responsible for the killings of 25 supposed guerrillas and sympathizers in 1991 and 1992.
It sentenced him in 2009 to 25 years in jail.
In a separate case, he pleaded guilty to bribing lawmakers and spying on former rivals while in power.
The soap opera within the Fujimori family matched the drama of his turbulent decade in office.
His former wife Susana Higuchi divorced him in 1994, and later accused his men of torturing her.
His daughter Keiko Fujimori took over as the nation's first lady at the age of 19.
Shortly after their divorce, Higuchi ran against her ex-husband in an election in 1995, but he blocked her by passing a law prohibiting presidents' close family from succeeding them directly in office.
Once jailed, Fujimori was in and out of the hospital with heart, back and stomach trouble. He had several operations to remove cancerous growths from his tongue.
The courts in 2017 rejected efforts by Fujimori's family to have him pardoned and freed from prison.
But just days after Fujimori's son Keiko helped President Pedro Pablo Kuczynski survive an impeachment vote, the presidency announced that the jailed strongman would be granted clemency due to his poor health.