Criminal charges have been dropped against a Bronx, N.Y. cabby who beat his wife’s would-be rapist to death with a tire iron, prosecutors announced Wednesday.

Mamadou Diallo, 61, had faced assault and weapons charges after bludgeoning Earl Nash to death last May as the brute tried to rape Diallo’s wife inside their apartment.

Diallo’s family burst into cheers as Bronx Supreme Court Justice Marc Whiten signed off on the dismissal, while the heroic husband sat stoically in court.

“There could be no joy in a circumstance such as this,” the judge said. “Mr. Diallo, you are free to go.”

Outside the courtroom, Diallo, who cried with his wife when he was informed of the dismissal Wednesday morning, seemed relieved.

“I’m happy for the American justice, and it’s the best way in the world, that’s what I say,” he said.

Click for more from The New York Post.