Peruvian president Pedro Pablo Kuczynski survived an opposition attempt to impeach him over ties to a Brazilian construction giant implicated in Latin America's biggest corruption scandal.
Legislators came eight votes short of impeaching the president during a late-night vote on Thursday that followed a half-day of impassioned debate in parliament where the 79-year-old former Wall Street banker himself delivered a forceful defence.
Applause erupted inside Congress and his supporters cheered and waved Peruvian flags outside as it became clear Mr Kuczynski would remain president.
"Tomorrow a new chapter in our history begins: the reconciliation and reconstruction of our country," Mr Kuczynski tweeted afterward.
The impeachment effort against the Peru's president was the latest chapter in the Odebrecht bribery scandal that has ended the careers of some of Latin America's most prominent politicians. The company admitted in a 2016 US Justice Department agreement to paying nearly $800 million (Dh2.94 billion) in kickbacks to politicians, their campaigns and political parties to secure lucrative public works contracts.
In Ecuador, vice president Jorge Glas has been sentenced to six years in prison for orchestrating an Odebrecht bribery scheme. Former Brazilian president Luiz Inacio Lula da Silva is appealing his conviction on charges of corruption and money laundering related to the plot. In Peru, two former presidents stand accused of accepting money from Odebrecht. One is behind bars and the other in the US seeking to avoid extradition.
Mr Kuczynski came under fire after an opposition-led investigative committee revealed documents last week showing Odebrecht made $782,000 in payments to his private consulting firm more than a decade ago. Some of the payments overlapped with years that Mr Kuczynski spent as a high-ranking government minister.
During his 30-minute testimony on Thursday, Mr Kuczynski showed the contracts in question on an overhead screen, pointing out that none contained his signature. He said he had no knowledge of the payments and that he never favoured any company while in office. He characterised the transactions as part of a legal contract between two private companies and said his opponents were trying to force him from power without due process.
"I am here to look you in the eye, and tell you that I am not corrupt and I have not lied," he said, speaking slowly and assertively.
The vote capped a tumultuous eight days in Peru, one of South America's most politically volatile nations.
Analysts worried that impeachment could usher in a new period of uncertainty for Peru, an economic bright spot in Latin America that throughout its recent history has vacillated between short spans of democracy and autocratic rule.
"That they would impeach the president is not an unthinkable thing," said Steve Levitsky, a Harvard University political scientist who has spent years studying Peru. "It's that they would do it in a week without serious investigation, without a serious process of public debate."
The vote was pushed by the opposition Popular Force party led by Keiko Fujimori, who is the daughter of jailed former president Alberto Fujimori. She narrowly lost to Mr Kuczynski in last year's presidential election.
Legislators debated for more than 10 hours, delivering fervent speeches that touched on everything from the merits of neoliberal economic policy to a Gabriel Garcia Marquez short story reference.
The president's detractors contended that he should have disclosed the payments before taking office and that, at the very least, as a high-ranking government minister when the money was paid he should have done a better job to shield himself from potential conflicts of interest.
Opposition legislator Milagros Takayama questioned why the president repeatedly insisted until recently that he had no ties to Odebrecht and agreed to go before the investigative commission only after the documents showing the payments were released.
"We deserve a Peru free of corruption and ineptitude," she said.
Polls within Peru had suggested a majority of Peruvians wanted the already deeply unpopular president out of office.
As a senior business leader and statesman with many ties to the private sector, Mr Kuczynski was "sort of Trump-like in not clearly breaking those ties. And he's paying a price for it," Mr Levitsky said.
While Mr Kuczynski managed to avoid impeachment, his troubles are not yet over. He is due for questioning at the chief prosecutor's office next week, and a majority opposition rule in Congress is likely to make it difficult for him to govern.