AUSTRALIA avoided a first Test series whitewash at home with a consolation seven-wicket victory in Adelaide as South Africa won the series 2-1.
The Proteas were bowled out for 250 before Australia chased 127 on the fourth evening of the day-night Test.
David Warner made 47, Steve Smith 40 and Matt Renshaw, the England-born opener, 34 not out off 137 balls.
Earlier, Stephen Cook converted his overnight 81 into 104 for South Africa as Mitchell Starc took 4-80.
Victory ended Australia’s run of five successive Test defeats, and was their first in any form of cricket since beating Ireland in a one-day international in September.
South Africa’s series triumph was their third in a row in Australia.
The match ended a fractious tour during which South Africa captain Faf du Plessis was fined for ball-tampering, and a member of their security staff jostled with an Australian journalist at the airport.
Australia play the first of three one-day internationals against New Zealand on 4 December before hosting Pakistan in a three-Test series from 15 December.
South Africa’s next assignment is the visit of Sri Lanka, with a three-Test series starting on 26 December.
SOUTH AFRICA 1st innings 259 for 9 decl (F. du Plessis 118no; J. Hazlewood 4-68)
Australia 1st innings 383 (U. Khawaja 145, S. Smith 59, P. Handscomb 54, M. Starc 53)
South Africa 2nd innings (Overnight: 194-6)
S. Cook b Starc 104
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 lbw b Bird 5
V. Philander lbw b Starc 17
K. Rabada c Wade b Hazlewood 7
T. Shamsi not out 0
Extras (lb-10 nb-3) 13
Total (all out, 85.2 overs) 250
Fall of wickets: 1-1 D. Elgar,2-82 H. Amla,3-131 J. Duminy,4-154 F. du Plessis,5-190 T. Bavuma,6-194 K. Abbott,7-201 Q. de Kock,8-235 V. Philander,9-250 K. Rabada,10-250 S. Cook
Bowling: M. Starc 23.2 – 5 – 80 – 4(nb-1) J. Hazlewood 20 – 8 – 41 – 2
J. Bird 20 – 3 – 54 – 1(nb-2), N. Lyon 21 – 4 – 60 – 3,
D. Warner 1 – 0 – 5 – 0.
AUSTRALIA 2nd innings (Target: 127 runs)
M. Renshaw not out 34
D. Warner run out (Bavuma, de Kock) 47
U. Khawaja lbw b Shamsi 0
S. Smith c de Kock b Abbott 40
P. Handscomb not out 1
Extras (lb-4 nb-1) 5
Total (for 3 wickets, 40.5 overs) 127
Fall of wickets: 1-64 D. Warner,2-64 U. Khawaja,3-125 S. Smith
Did not bat: N. Maddinson, M. Wade, M. Starc, J. Hazlewood, N. Lyon, J. Bird
Bowling: K. Abbott 10 – 2 – 26 – 1, V. Philander 7 – 2 – 20 – 0, K. Rabada 9 – 4 – 28 – 0(nb-1),
T. Shamsi 14.5 – 4 – 49 – 1.