Adelaide: Australia took firm control of the day-night third Test on Saturday when they reduced South Africa to 194 for six at the close on day three, only 70 runs ahead of their hosts.
Desperate for a consolation victory to avoid a first 3-0 series sweep on home soil, Australia's tail boosted their first-innings tally to 383 before the bowlers took over.
Dean Elgar and Hashim Amla departed before tea and JP Duminy, captain Faf du Plessis, Temba Bavuma and Kyle Abbott followed under the lights in the night session.
Opener Stephen Cook was the one top-order batsman left standing after hitting 81 off 199 balls and will return to the crease on day four with Quinton de Kock, who had yet to score.
Paceman Mitchell Starc, who earlier completed his seventh Test half century, removed Elgar for a duck with the fifth ball of the innings before taking the key wicket of Du Plessis for 12 courtesy of a brilliant catch by Peter Handscomb.
The home side celebrated with the debutant as if they had won the match, an indication of the importance they placed on the wicket of Du Plessis, who contributed an unbeaten 118 to South Africa's first innings 259-9 declared.
Amla has been a less influential figure on this tour and, having been dropped on 13, lost his wicket to Josh Hazlewood for the fifth time in the series when he nicked behind for 45.
Australia had resumed on 307 for 6 after enjoying their best day of batting in the series on Friday.
Usman Khawaja's match-changing innings ended when he was trapped lbw by Vernon Philander for 145 while Starc was caught and bowled by Kagiso Rabada for 53 to trigger the end of the innings.
After the string of batting collapses that contributed to humiliating defeats in Perth and Hobart, however, the hosts will have been pleased that their last four wickets were worth 100 runs.
Following Elgar's early departure off an outside edge, which Australia skipper Steve Smith took with a fine low catch in the cordon, Cook was even more circumspect as partners came and went at the other end.
The 33-year-old took 117 balls to reach his second test half century and was 19 runs away from his second test hundred at the close of play.
Duminy (26) took the tourists past Australia's tally with two runs to third man but lost patience at the pace of scoring and tried to play across a Nathan Lyon delivery only to miss the ball completely and watch it take out his off-stump.
Bavuma made 21 before giving Lyon his second wicket shortly before stumps, the batsman attempting a sweep but getting an edge which looped off his arm for Smith to catch.
Lyon was getting serious turn by now and still had time to remove nightwatchman Abbott lbw for a duck to give the off-spinner figures of 3-48 and pin the South Africans firmly to the ropes. - Reuters
South Africa 1st innings: 259 for 9 decl (F. du Plessis 118no; J. Hazlewood 4-68)
Australia 1st innings:
U. Khawaja lbw b Philander 145
M. Renshaw c Elgar b Abbott 10
D. Warner c Elgar b Abbott 11
S. Smith run out (Philander, de Kock) 59
P. Handscomb b Abbott 54
N. Maddinson b Rabada 0
M. Wade c de Kock b Philander 4
M. Starc c & b Rabada 53
J. Hazlewood not out 11
N. Lyon c Amla b Shamsi 13
J. Bird c du Plessis b Rabada 6
Extras (b-3, lb-9, nb-3, w-2) 17
Total (all out, 121.1 overs) 383
Fall of wickets: 1-19, 2-37, 3-174, 4-273, 5-277, 6-283, 7-327, 8-357, 9-370, 10-383
Bowling: V. Philander 29-5-100-2 (nb-3), K. Abbott 29-11-49-3, K. Rabada 25.1-4-84-3 (w-2), T. Shamsi 29-4-101-1, J. Duminy 6-0-25-0, D. Elgar 2-0-11-0, T. Bavuma 1-0-1-0
South Africa 2nd innings:
S. Cook not out 81
D. Elgar c Smith b Starc 0
H. Amla c Wade b Hazlewood 45
J. Duminy b Lyon 26
F. du Plessis c Handscomb b Starc 12
T. Bavuma c Smith b Lyon 21
K. Abbott lbw b Lyon 0
Q. de Kock not out 0
Extras (lb-6, nb-3) 9
Total (for 6 wickets, 69 overs) 194
Fall of wickets: 1-1, 2-82, 3-131, 4-154, 5-190, 6-194
To bat: V. Philander, K. Rabada, T. Shamsi
Bowling: M. Starc 19-4-71-2 (nb-1), J. Hazlewood 16-8-22-1, J. Bird 16-3-42-0 (nb-2), N. Lyon 17-4-48-3, D. Warner 1-0-5-0
Umpires: R. Kettleborough & N. Llong
TV umpire: Aleem Dar
Match referee: Andy Pycroft