Peru has a female president for the first time, after ex-president Pedro Castillo was impeached – hours after he tried to dissolve parliament.
Dina Boluarte – previously the vice-president – was sworn in after a dramatic day in Lima on Wednesday.
Earlier in the day, Mr Castillo had said he was replacing Congress with an “exceptional emergency government”.
But lawmakers ignored this, and in an emergency meeting impeached him. He was then detained and accused of rebellion.
Reports in local media say he was heading to the Mexican embassy in the capital when he was arrested.
Ms Boluarte, a 60-year-old lawyer, said she would govern until July 2026, which is when Mr Castillo’s presidency would have ended.