Perth: Emerging South African paceman Kagiso Rabada claimed three crucial wickets as South Africa closed in on victory against Australia on the fourth day of the opening Test in Perth on Sunday.
Set an intimidating victory target of 539, the home side were wobbling on 169 for four at stumps and facing a potential record defeat against South Africa.
Usman Khawaja was on 58 and Mitchell Marsh on 15, with South Africa's unbeaten record at the ground set to be extended.
An extraordinary piece of fielding by the diminutive Temba Bavuma removed the dangerous David Warner for 35 to end an opening stand of 52.
Warner dropped the ball in front of him and set off for a quick single, but Bavuma pounced from cover and unleashed a powerful throw while horizontal and still in mid-air.
It rattled the stumps at the non-striker's end with Warner centimetres out of his ground.
The dismissal set the stage for Rabada (3-49) to display his quality in the absence of champion pacemen Dale Steyn due to a shoulder injury suffered on the first day.
Four balls later fellow opener Shaun Marsh (15) was caught at second slip by Faf du Plessis off the bowling of Rabada as Australia suddenly slumped to 52-2.
Things appeared to get even darker for the hosts when new batsman Khawaja was given out caught behind first ball against the part-time spin of JP Duminy.
A decision review saved Khawaja when it showed the ball had glanced off his pad rather than the bat.
Steven Smith and Khawaja, who was dropped on 41 when Hashim Amla could not cling on to a tough chance at first slip, set about rebuilding the Australian innings in search of a draw.
The pair settled in against the part-time bowlers, but when the ball started to reverse swing Rabada returned to the attack and ended a 92-run third-wicket stand with an impressive spell.
Bowling with high pace in his ninth Test, the 21-year-old showed he can become the perfect long-term replacement for Steyn when he removed Smith (34) and Adam Voges (1) in successive overs.
Smith had looked solid but drove at a ball and got an outside edge to wicketkeeper Quinton de Kock.
Rabada's next over to Voges was outstanding, with a couple of almost unplayable deliveries before he had the new batsman caught behind off a thin outside edge.
South Africa had declared their second innings on 540 for 8 after lunch when Vernon Philander was bowled by Smith for 73.
It ended a brisk 72-run stand with Keshav Maharaj (41 not out) as the visitors batted the home side out of the match after resuming on 390 for 6 on Sunday morning.
South Africa's massive total was underpinned by 141 from Duminy and 127 from Dean Elgar.
The pair put on 250 for the third wicket as part of a remarkable comeback by the tourists after their disappointing first day.