South Africa completed a sensational victory over Australia in the first Test in Perth as they chased down the second-highest fourth-innings total in Test history to win by six wickets.
The tourists knocked off their target of 414 with something to spare at the WACA with debutant JP Duminy hitting the winning runs shortly before tea.
Duminy notched a maiden half-century as he finished on 50 not out, but it was AB de Villiers who proved the real star of the show for the Proteas as he made an unbeaten 106 to guide his side home.
The duo put on a partnership of 111 after Jacques Kallis was dismissed for 57, becoming Mitchell Johnson's 11th wicket of the match after being caught by Mike Hussey.
However, that proved to be Australia's only wicket of the day as the tourists moved themselves 1-0 ahead in the three-match series.
The run chase is the highest-ever on Australian soil and second only to the West Indies 418-run pursuit of Australia in 2002-03.
The foundations for South Africa's triumph had been laid by skipper Graeme Smith on Saturday who made 108, while Hashim Amla also contributed 53.
The tourists resumed on Sunday with de Villiers and Kallis at the crease needing a further 187 for victory and looked confident and assured throughout.
The pair picked up singles almost at will and put the bad balls away to eat into their target at a healthy rate.
Kallis did eventually depart just before lunch having brought up a deserved half-century, snapped up in the covers by Hussey following a loose drive off Johnson (11-159).
But if Australia hoped that wicket could open the door to a South Africa collapse it proved a false dawn with Duminy showing real composure on his debut to settle quickly at the crease.
De Villiers did survive one or two scares, noticeably on 67 when Brett Lee let a chance flash through his hands, but the 24-year-old was good value for his century which arrived with a pull off Johnson.
It was left to Duminy to close out the match, a push through the covers for three bringing up his half-century and easing South Africa home, much to the delight of their dressing room.
Australia now have it all to do if they are to win the recover the series which resumes in Melbourne on Boxing Day.