Peru's new President Dina Boluarte was scrambling to form a government on Thursday, a day after the country was thrown into political chaos by the dramatic arrest of her predecessor following a failed coup.
The South American country's first ever female leader asked the opposition for a truce as she tried to end the turmoil sparked by Pedro Castillo, who had attempted to dissolve parliament and rule by decree.
Castillo's power grab was quickly stamped out by lawmakers who voted him out of office in a dizzying day of high drama, by the end of which former vice-president Boluarte had emerged as the country's new head of state.
She took the oath of office within two hours of the impeachment vote, donning the presidential sash in front of Congress and vowing to serve out the rest of Castillo's term, until July 2026.
In her first words as president, she called for "national unity" and urged lawmakers to put aside their ideological differences, in a tacit reference to the confrontation between Castillo's leftist government and the right-wing dominated Congress.
The 60-year-old lawyer must now form her first ministerial cabinet, which will be an early indication of whether she is likely to survive.
Her initial appointments will signal the support she can muster for her government. If she is unable to rule, calls will grow for her resignation or the calling of early elections.
Earlier in the day Castillo had faced his third impeachment attempt since the former rural schoolteacher unexpectedly won power from Peru's traditional political elite 18 months ago.
In a televised address, the 53-year-old announced he was dissolving the opposition-dominated Congress, imposing a curfew and would rule by decree for at least nine months.
As criticism poured in over the speech, lawmakers defiantly gathered earlier than planned to debate the impeachment motion and approved it with 101 votes out of a total of 130 lawmakers.
Castillo had left the presidential palace after the vote with the intention of seeking asylum in Mexico's embassy before he was arrested, according to a police report published by local media.
By Wednesday night, Castillo had been transferred to a police facility in east Lima, where graft-convicted former president Alberto Fujimori -- himself removed by Congress in 2000 -- is serving out his sentence.
Authorities said they had caught him red-handed staging a power grab.
Hundreds of protesters, some of whom supported the former president and others who opposed him, took to Lima's streets after his impeachment.
"We are tired of this corrupt government that was stealing from day one," said 51-year-old Johana Salazar.
'She is alone'
Without her own political party in Congress, Boluarte is facing an uphill battle to stay in power.
"She has no party in Congress, she is alone," Peru's former president Ollanta Humala told local television on Wednesday night.
"She does not have the tools to govern, she should call for an early election," added Humala, who was in office from 2011 to 2016.
"Today's truce will last a month or maybe more, but then the country's big problems will come to the fore."
But right-wing political heavyweight Keiko Fujimori, the daughter of ex-president Fujimori, said her party would support the new president.
"Let's hope that the president appoints a broad-based cabinet, a very good cabinet and we must all do everything possible to make it work well," she tweeted.