Peru swore in its third president in just over a week on Tuesday, after the nation's unstable political system crumbled spectacularly.
Francisco Sagasti became the fourth Peruvian president in less than five years after Congress voted to oust popular ex-president Martin Vizcarra and Vizcarra's replacement, Manuel Merino, resigned.
Sagasti will now have five months in office to steady the ship ahead of presidential elections in April 2021 amid a deadly pandemic and a public discontented with its bickering political class. Here's what you need to know.
How Peru lost its last elected president
The current crisis is the culmination of four years of wrangling between multiple Peruvian presidents and the opposition-controlled Congress says Denisse Rodriguez-Olivari, a Peruvian political scientist at Humboldt University in Berlin, Germany.
Congress had put forward a huge number of motions against presidents and ministers, designed to stop the government from enacting policy, which Rodriguez-Olivari describes as its legislators' "efforts to accentuate conflict."
Keiko Fujimori, leader of the Popular Force party, lost the 2016 presidential election in a tight runoff, but her party held the most seats in Congress. "We are going to turn the proposals from our manifesto into laws," she said, vowing to rule from Congress and setting up a fraught relationship with the president.
The power struggle was particularly contentious in the education arena, with legislators repeatedly putting forward motions to remove education ministers from their post and to slow reforms that would affect private universities.
On November 9, Congress voted to impeach Vizcarra following allegations of corruption related to construction projects approved when he was the governor of the Moquegua region in southern Peru from 2011 to 2014. Vizcarra has denied the allegations, but accepted the impeachment decision.
"History and the Peruvian people will judge," he said in a speech following the impeachment vote.
As dictated by the constitution, Vizcarra was replaced by then-head of Congress Manuel Merino, who lasted just five days in the post before resigning under pressure from mass protests in which two people were killed and dozens more injured.
Sagasti, a 76-year-old legislator representing the Purple Party (Partido Morado), was then appointed by Congress to replace Merino, becoming Peru's fourth president in less than five years. He takes power a time when the public has shown its willingness to take to the streets to express its disillusionment with the political class.
Why Peruvians protested
Protesters took to the streets to get Merino to leave his post, but the marches soon took on a wider significance.
While Vizcarra's ouster may have been the spark for the protests, Rodriguez-Olivari doesn't think people took to the streets purely to support him. "I think people realized that what was happening was an attack on democracy," she said, as Merino's move from head of congress to president would have removed the checks and balances between the two branches of government.
Sagasti's appointment has gone some way to placate the public, as his party was the only one to vote as a bloc against impeaching Vizcarra.
In his first speech, the new president asked for "forgiveness in the name of the state" for the deaths of two protesters, Jack Bryan Pintado Sanchez and Jordan Inti Sotelo Camargo, and promised to support those who suffered injuries.
He also called on all of Peru to work together to create a "republic of equals."
Peru's voters are unlikely to be satisfied
However the problems run deeper than this week; Peruvians have long been disillusioned with their national politics and widespread corruption among politicians.
One problem is that political parties form and dissolve at an alarming rate, and frequently put forward poor quality candidates.
"We end up voting for the least worst that we can find," said Rodriguez-Olivari, who emphasized that voting is obligatory. "As a Peruvian I can't remember the last time I voted for conviction instead of seeing what there is and making a choice."
In his speech Sagasti, an engineer, academic and former World Bank official, himself recognized that much of the political class hasn't "been up to the great challenges that we have faced.
Many previous rulers haven't "been able to respond to the legitimate aspirations of the large majority of Peruvians," he said.
Some citizens have called for a new constitution to update rules governing how presidents are removed, among other things.
And Rodriguez-Olivari says the rules governing political parties and candidates need to change too. But that's a tall order when congress "has no incentive to make big reforms because they'd be shooting themselves in the foot."