The President of the Republic of South Africa, Cyril Ramaphosa has been cleared by high court on allegations of corruption.

Ramaphosa was in court on allegations that he misled lawmakers over campaign-finance donations.

Public Protector Busisiwe Mkhwebane erred when she found that Ramaphosa deceived parliament about a payment to his 2017 campaign to win control of the ruling party, Judge Chris Jafta said .

Ramaphosa’s victory in that campaign ultimately led to him becoming the nation’s president.

“The Public Protector was wrong on the facts and the law with regard to the finding that the president misled parliament,” Jafta said in a ruling in Johannesburg.

Ramaphosa’s campaign gathered in excess of 300 million rand ($21 million) and his detractors in the ruling African National Congress have called for the list of donors to be made public.

The top court’s ruling came two days after it sentenced Ramaphosa’s predecessor, Jacob Zuma, to 15 months in prison for defying its order to testify before a graft inquiry.

Mkhwebane has been seen to be a Zuma ally, and parliament is considering whether to remove her on grounds of misconduct, incapacity or incompetence.

Meanwhile, Jacob Zuma is expected to surrender himself to the police within five days.