A police officer on patrol was attacked and burned to death by protesters in the Peruvian region of Puno as the death toll from demonstrations in the wake of the ouster of former President Pedro Castillo rose to 47, authorities said Tuesday.

José Luis Soncco Quispe, 29, was on patrol with a fellow officer in Juliaca, a city near the border with Bolivia and Lake Titicaca, on Monday night when they were attacked by a mob that later set fire to their vehicle, according to police reports.

Soncco’s partner in the patrol car, Ronald Villasante Toque, said the men were "detained and physically attacked by some 350 protesters," according to the reports.

13 DIE IN PERU CLASHES AMID NEW ANTI-GOVERNMENT PROTESTS

Villasante was taken to a hospital in Lima with multiple head injuries after being beaten. He said he was unaware of what was happening to his partner.

Prime Minister Alberto Otárola confirmed Soncco’s death in a session of Congress, saying the men were attacked by protesters.

Peru protest death toll

José Luis Soncco Quispe, 29, was on patrol when he was attacked and burned to death by Peruvians protesting the dismissal of President Pedro Castillo. The death toll caused by the unrest is now at 47. (AP Photo/Jose Sotomayor)

"Police arrived at the scene and found that one officer had been beaten and tied up, and the other, Luis Soncco Quispe, unfortunately had died," he said. "He was burned alive in his patrol car."

Otárola announced a three-day curfew from 8 p.m. to 4 a.m. in Puno, and a day of mourning for the fallen on Wednesday.

Peru’s Ombudsman’s Office said that since the protests began in early December after Castillo's dismissal, 39 civilians had been killed in clashes with police and another seven had died in traffic accidents, as well as the fallen police officer.

DEMOCRATS ORGANIZE BID TO EXTRADITE BOLSONARO FROM FLORIDA AFTER BRAZILIAN CAPITOL ATTACKc

The police officer’s death came after the killing of 17 people Monday in Juliaca as protests seeking immediate elections resumed in neglected rural areas of the country still loyal to Castillo.

The unrest began following Castillo’s removal and arrest following a widely condemned attempt to dissolve Congress and head off his own impeachment.

Castillo’s successor, his former running mate Dina Boluarte, has supported a plan to push up to 2024 elections for president and congress originally scheduled for 2026. She’s also expressed support for judicial investigations into whether security forces acted with excessive force.

CLICK HERE TO GET THE FOX NEWS APP

But such moves have so far failed to quell the unrest, which after a short respite around the Christmas and New Year’s holidays have resumed with force in some of Peru’s poorest areas, where support for Castillo’s unorthodox rule had been strongest.

Castillo, a political novice who lived in a two-story adobe home in the Andean highlands before moving to the presidential palace, eked out a narrow victory in elections in 2021 that rocked Peru’s political establishment and laid bare the deep divisions between residents of the capital, Lima, and the long-neglected countryside.