The man who oversaw Philippines President Rodrigo Duterte’s war on drugs, which has left tens of thousands of people dead, resigned Monday — amid allegations he protected police officers who were selling large quantities of seized drugs.

General Oscar Albayalde, chief of the Philippine National Police, tendered his resignation over the weekend, though in a speech Monday he continued to deny the allegations that have been building against him in recent weeks.

“After careful deliberation, I have come to the decision to relinquish my post as chief, effective today and go on non-duty status,” Albayalde said. He had been scheduled to retire on November 8.

Albayalde rose to power as Duterte’s enforcer in the brutal war on drugs the Philippines’ president has waged since he took office in 2016.

But in recent weeks, Senate hearings have revealed accusations of a “grand cover-up” by Albayalde when he was Pampanga police chief in 2013.

Albayalde was accused by a former police chief of intervening to prevent the dismissal of officers under his command after they seized 200kg of methamphetamine from a drug suspect, who they then allowed to escape after receiving a $1 million bribe.

The officers were also accused of only declaring 38kg of the total haul of drugs and retaining the rest for use in other operations, or selling it on.

Benjamin Magalong, the retired head of the criminal investigation and detection group, made the allegation accidentally during a Senate hearing on a different topic. A second police general came forward to back up the allegation and said Albayalde told him he “got a little” of the bribe.

Despite the mounting evidence against Albayalde, Duterte has refused to fire him, saying no criminal charges have been laid against the police chief, and insisting he needed “clear proof” before firing him.

“I can only speculate that maybe [Albayalde] had enough of the — according to him — false, unfair accusations and innuendos, especially because his family is suffering. Maybe the guy gave in," Duterte’s spokesman, Salvador Panelo, told reporters Monday.

Duterte’s brutal crackdown on drug users and dealers has resulted in thousands of deaths. While the Philippines’ police put the figure at 6,600 in a June report, human rights groups claim over 25,000 people may have been killed.