South Africa's president Jacob Zuma narrowly defeated a no confidence vote after a secret ballet on Tuesday.
Of the 400 member parliament, 198 voted against the attempt to oust him, 177 in favour and nien abstained.
Celebrating his win, Mr Zuma exalted the ANC's credentials.
"It's difficult to defeat the ANC. They always try," he was quoted by Al Jazeera as saying.
The main opposition party, the Democratic Alliance said, "today's motion of no confidence result is closer than anyone expected."
"Jacob Zuma is the manifestation of what the ANC has become - a toxic mix of corruption, cronyism and nepotism," he added.