South Africa's president, Cyril Ramaphosa, welcomed the decision by the High Court in Johannesburg to dismiss the private prosecution case instituted by former president Jacob Zuma.
The judge declared the prosecution of former President Zuma invalid and unconstitutional.
Former president, Jacob Zuma, turned to the court after blaming president Ramaphosa for failing to act when he told him about prosecutor Billy Downer's alleged misconduct.
Jacob Zuma is still fighting to have Downer removed from his arms deal corruption trial.
The court ordered Zuma to pay for the legal costs of Ramaphosa and those of two other counsels.