Peruvian President Dina Boluarte announced Friday the "definitive recall" of her ambassador to Mexico, citing the continued support that the North American country has given to deposed president Pedro Castillo.

Peru's leftist former president Castillo was impeached and arrested for attempting to dissolve parliament and rule by decree in December, and Boluarte has since seen weeks of anti-government protests across the Andean nation calling for her removal.

Castillo's ouster was criticized by leftist Latin American allies, including Mexico, which has sparked a diplomatic row.

On Friday Boluarte denounced the "unacceptable" interference in the "internal affairs" of Peru by Mexican President Andres Manuel Lopez Obrador.

"I have ordered the definitive recall of our ambassador to Mexico," Boluarte said in a televised address.

"In this way, diplomatic relations between Peru and Mexico are formally reduced to the level of charge d'affaires."

Her announcement comes the same day Lopez Obrador reiterated that "Mexico will continue to support (Castillo) who was unjustly and illegally removed from office".

"I strongly reject the remarks made today by the president of Mexico on Peru's internal affairs and his repeated unacceptable questioning of the constitutional and democratic origins of my government," Boluarte said.

She added that Lopez Obrador has "decided to support the coup d'etat carried out by the now former president Pedro Castillo on December 7, 2022".

Lopez Obrador has been one of Castillo's most fervent foreign supporters, along with the fellow leftist leaders of Bolivia, Argentina and Colombia.

Peru had already expelled the Mexican ambassador at the end of December, after Mexico granted political asylum to Castillo's wife and two sons.

At least 48 people have died in clashes between security forces and protesters since unrest broke out on December 7, following his impeachment and arrest.

The demonstrations are driven by poor southern, Indigenous Peruvians who perceive Castillo -- who is also from humble origins and has Indigenous roots -- as an ally in their fight against poverty, racism and inequality.