MPs at a special sitting of South Africa’s parliament voted to reject a move to begin impeachment proceedings against President Cyril Ramaphosa.
The president was accused of covering up the theft of a large sum of foreign currency from his farm in 2020, some of which had been hidden in a sofa.
The debate before the vote focussed on an independent report which concluded he may have violated the constitution.
Mr Ramaphosa, who is up for re-election as ANC leader, denies any wrongdoing.
The African National Congress had told its MPs to block a possible impeachment – although a handful broke ranks and sided with opposition parties and voted to accept the report and let impeachment proceedings start.
Now that Mr Ramaphosa has survived the vote, he is thought likely to win re-election at his party’s conference, which starts on Friday. He will then be in pole position to become the ANC’s presidential candidate at the next election in 2024.
The sitting to debate the report, which was commissioned from a panel of legal experts by the speaker, opened with a discussion over whether MPs should be allowed to vote in secret – something which the speaker had rejected.
At the end of the debate, names of individual MPs were read out and each one announced their vote.
Some 214 lawmakers voted against setting up an impeachment committee, while 148 voted in favour, two abstentions were registered.
The 70-year-old leader has denied any wrongdoing calling the report, which he has challenged in the Constitutional Court, “flawed”.
Mr Ramaphosa became president in 2018 pledging to tackle corruption. He replaced Jacob Zuma, whose time in office had been weighed down by many such allegations.
This scandal erupted in June, when a former South African spy boss, Zuma-ally Arthur Fraser, filed a complaint with police accusing the president of hiding a theft of $4m (£3.25m) in cash from his Phala Phala game farm in 2020.
Mr Ramaphosa admitted that some money, which had been hidden in a sofa, had been stolen, but said it was $580,000 not $4m.
The president said the $580,000 had come from the sale of buffalo, but the panel, headed by a former chief justice, said it had “substantial doubt” about whether a sale took place.
South Africa has strict rules on holding foreign currency, which say that it must be deposited with an authorised dealer such as a bank with 30 days. It appears as though the president may have broken those rules, according to the panel’s report.
Furthermore, if the money was from selling buffalo as he said, this money should have been declared, rather than kept in cash.
In his submission to the Constitutional Court, Mr Ramaphosa wants the country’s top judges to rule that the findings of the panel are unlawful and set aside.
The president argues that the panel went beyond its scope when looking at whether he had a case to answer related to the robbery at the farm.
He is also asking the court to declare that any steps taken by parliament on the back of the release of the report to be declared unlawful and invalid.
So what next?
Analysis by Nomsa Maseko, BBC News, Johannesburg
The dominance of the ANC in parliament has saved Mr Ramaphosa’s future in politics.
His chances of being re-elected as ANC president at the party’s national conference have now been boosted.
However, events in parliament showed once again deep divisions in the governing party.
Four Pro-Zuma supporters, including former African Union chairperson, Nkosazana Dlamini Zuma – a prominent party member – voted with opposition parties.
The opposition had tried, and failed, to push for a secret ballot sensing that more members could break ranks.
But Tuesday’s win is only political, and not legally binding.
Mr Ramaphosa will need to get the Constitutional Court to weigh in on the matter, though some experts say the judges are likely to side with him after parliament, which commissioned the investigation, rejected its own report.
For now, on top of a huge sigh of relief, Mr Ramaphosa marches on with severe political bruises – his credibility and ability to govern will come into even sharper focus.