Peruvian President Pedro Castillo delivers a speech during a meeting with members of the self-defense committees, the so called "peasant patrols" who act as law-and-order enforcers in parts of rural Peru, at the Government Palace in Lima on Aug 10, 2022. (ERNESTO BENAVIDES / AFP)

LIMA – The governments of Mexico, Argentina, Ecuador and Bolivia on Saturday backed the continuation of Pedro Castillo's presidency in Peru, where he is facing several criminal investigations and constant threats of impeachment.

"We reiterate our solidarity with the legitimately elected authorities," the countries said in a joint statement. "We trust that all (Peruvian) political actors will prioritize building broad consensus."

Castillo, a former teacher and peasant farmer raised in a poor family in Peru's rural Andes, came to power last year

Castillo, a former teacher and peasant farmer raised in a poor family in Peru's rural Andes, came to power last year.

ALSO READ: Peru opens criminal probe of president after firing of minister

While his election spooked investors, Castillo has since moderated his stance, keeping technocrats in the key finance ministry. But he has cycled through many crises, including surviving two impeachment attempts and reshuffling his Cabinet many times.

He is also under six separate criminal investigations for, among other things, obstruction of justice in the firing of an interior minister. Opposition lawmakers have said they would like to launch a third impeachment attempt but acknowledge they do not have the votes to oust him.

Mexico, Argentina and Bolivia are led by left-wing governments that have supported Castillo in the past. Ecuador is led by center-right Guillermo Lasso.

READ MORE: Peru's Castillo comes out fighting after impeachment vote