LIMA, Peru — Peru's attorney general resigned on Tuesday amid accusations that he hindered a corruption probe involving Brazilian construction giant Odebrecht.
In a letter presented to Peru's chief prosecutors, Pedro Chavarry said he was stepping down in order to preserve the autonomy of the Attorney General's Office and stop the country's president from intervening in other, independent branches of government.
Chavarry described himself as a "victim" of journalists, politicians and non-governmental organizations bent on having him removed from office and hounding him for performing his constitutional duties.
But his critics celebrated his resignation and described it as a move that would facilitate anti corruption investigations in the South American country.
Chavarry had been appointed to the three-year position in July by a panel of senior prosecutors. He often clashed with Peru's president and his tenure as Attorney General was marred by accusations that he was part of a ring of corrupt prosecutors who peddled political favors in exchange for bribes. But Chavarry stayed in his post thanks to the support of two mayor opposition parties, whose leaders are currently being investigated for allegedly taking bribes from Odebrecht.
On New Year's eve, Chavarry dismissed two popular prosecutors who led the Odebrecht corruption probe, accusing Jose Domingo Perez and Rafael Vela of blocking his request for information on the case. He also said Perez made public statements that put his objectivity in doubt.
But the dismissal sparked street protests in several cities in which demonstrators accused Chavarry of trying to protect corrupt officials and called for his resignation.
Peruvian President Martin Vizcarra said the removal of the prosecutors would derail the investigation and immediately pushed for an overhaul of the Attorney General's Office, calling on congress to declare that office in a state of emergency.
Faced with those threats, Chavarry reinstated the prosecutors.
But as investigators turned their attention towards the attorney general and raided the offices of one of his closest aides, Chavarry decided that he could no longer keep his job.
"If I am the pretext for these illegal actions to be taken against the institution I represent, then it is best for me to step aside," Chavarry wrote in his resignation letter.
Chavarry will be replaced by Zoraida Avalos, a seasoned prosecutor who has promised to clean up the Attorney General's office of corrupt officials, by declaring it in a state of emergency.
Avalos said that she will provide unconditional support to the team that is investigating the Odebrecht corruption scandal. She also said she will support another team of prosecutors who are investigating Chavarry and other officials in the Attorney General's office.
"We need to recover the credibility of our institution" Avalos said in a press conference, shortly after being appointed as Peru's interim Attorney General.
A congressional committee has also promised to speed up an ongoing probe that is determining if Chavarry committed a series of crimes that include influence peddling, aiding criminal organizations and hindering corruption investigations.
The far-reaching Odebrecht investigation, that will now be led by Avalos, includes 40 individual cases, more than 300 people and dozens of companies linked to Odebrecht projects in Peru.
The most important cases involve Keiko Fujimori - leader of Peru's most powerful opposition party - and former President Alan Garcia, who is prohibited from leaving Peru for 18 months while he is investigated.
Odebrecht has admitted in U.S. court filings that it paid $800 million in bribes to officials across Latin America, including $29 million in Peru.