Mr. Duterte, 76, then said he would seek a post in the Senate. If he won, he would have at least a semblance of protection from outside forces seeking to prosecute him.
But on Tuesday, both Mr. Duterte and Mr. Go separately ended their candidacies.
It is not clear what Mr. Duterte plans next. He has vehemently denied the criminal accusations against him, and his aides have said that no International Criminal Court prosecutor would be allowed into the Philippines.
Last week, Mr. Duterte attended President Biden’s Summit for Democracy, where he reiterated his nation’s commitment to democratic principles.
A spokesman for Mr. Duterte said in a statement that the Philippines’ leader believed that withdrawing from the Senate race would allow him to better focus on the Covid-19 pandemic response and on efforts to ensure “transparent, impartial, orderly and peaceful elections” in May.
On Monday night, in his weekly televised address to the nation, Mr. Duterte said: “As I step down in June 2022, it will be my highest honor to turn over the reins of power to my successor knowing that in the exercise of my mandate, I did my best to serve the Filipino people.”