Graeme Smith and Hashim Amla both hit centuries to help guide South Africa to an eight-wicket win over Australia inside three days in the first Test.
Set 236 to win after
bowling Australia out for 47
on day two, captain Smith and Amla put on 195 for the second wicket to all-but wrap up the victory.
Amla was caught on 112 by Michael Clarke in the gully with South Africa needing just 14 more to win.
But Smith hit the winning runs as he ended on 101 not out.
It capped a remarkable turnaround for the home side who appeared to be facing a heavy defeat after being bowled out for just 96 in their first innings midway through the second day.
"We never expected 21-9 (which Australia were before a 26-run last-wicket stand), although there were a few jokes about 60 or 70 but I don't think anyone believed it. It was about a bit of direction and the bowlers knew they needed to do a job for us," Smith said.
"That shows the character of the team. We didn't just back off. Obviously there was something in the wicket for us but to bowl with that intensity was a good sign."
However, Australia, who had scored 284 in their opening knock, were bowled out for 47 in the evening session - narrowly avoiding the lowest Test score of 26 after Peter Siddle and Nathan Lyon put on 26 for the final wicket.
Australia captain Michael Clarke bemoaned his side's poor batting performance in the second innings, saying: "Without doubt we let ourselves down with the bat. Full credit to South Africa, for how they bowled and the way they played.
"Every single one of us needs to be disappointed. When you lose like that you don't just let yourselves down, you let the people who support you down.
"We need to find a way to get back up. Good teams do. That's how you learn, in my career I've learnt more from the not so good days than the good days," Clarke added.
Smith and Amla, who had guided South Africa to 81-1 overnight, continued to dominate the Australian bowling on the third morning.
Amla played some particularly impressive drives and he brought up his 13th Test century with a flashing drive to the point boundary.
However, he carved a similar shot moments later, off the bowling of Mitchell Johnson, straight to Clarke at gully.
Jacques Kallis came to the crease and nudged a couple of runs before Smith brought up his century and tucked one off his legs to record the winning run.
This page is best viewed in an up-to-date web browser with style sheets (CSS) enabled. While you will be able to view the content of this page in your current browser, you will not be able to get the full visual experience. Please consider upgrading your browser software or enabling style sheets (CSS) if you are able to do so.