Peru's ex-President Pedro Castillo has been detained, after his efforts to dissolve parliament instead ended in him being thrown out of office.
In a dramatic day in Lima, Mr Castillo was accused of plotting a coup in a last-gasp bid to avoid impeachment on corruption charges by Congress.
The move sparked international and local outrage, and lawmakers moved quickly to remove him from office.
His Vice-President Dina Boluarte was later sworn in as his successor.