JERUSALEM — Prime Minister Benjamin Netanyahu has withdrawn his request for immunity from prosecution on corruption charges, he said Tuesday morning, complaining that he would not have gotten a fair shake from Parliament and had therefore “decided not to let the dirty game continue.”

The move, which was not unexpected, ensures that Mr. Netanyahu, who is running in Israel’s third election in a year after the first two ended in deadlock, will have to campaign as a defendant in a criminal case heading into the March 2 ballot.

But it also deprives his political opponents, led by Benny Gantz of the centrist Blue and White party, of one stick with which they had hoped to beat Mr. Netanyahu.

Blue and White is now the largest party in Parliament, giving it the upper hand in setting the agenda for debate, but it will no longer be able to keep the criminal cases involving Mr. Netanyahu in the news by holding weeks of embarrassing parliamentary debate on immunity.