Adelaide: Australia cruised to a seven-wicket consolation victory in the day-night third Test on Sunday after dismissing South Africa for 250 and knocking off the 127 runs for victory for the loss of three wickets before dinner on day four.
There was a minor scare when, with 63 runs still required, Dave Warner was run-out for 47 and Usman Khawaja dismissed for a duck inside one over but there was never any real doubt that Australia would avoid a first ever 3-0 sweep on home soil.
Opener Matt Renshaw, one of three new caps brought into the Australia side after heavy defeats in the first two Tests, scored 34 not out and brought the hosts level after his captain Steve Smith was dismissed for 40 with only two runs required.
It was left to another of the debutants, Peter Handscomb, to score the winning run with a single to midwicket.
It was Australia's second pink ball victory after they beat New Zealand in the inaugural Test in Adelaide last year but more importantly ended a run of five defeats.
"I'm very pleased," Smith said.
"It was obviously a disappointing way to start the series, we've been outplayed by South Africa, but I'm proud of the way the boys came out and turned things around and showed a bit of fight, resilience and character. It was a long time coming."
While the success of the overhaul of the batting line-up remains largely moot ahead of the visit of Pakistan, the strength of Australian pace bowling is not in doubt.
Left-arm quick Mitchell Starc earlier finished with figures of 4-80 as Australia removed the last four South African batsmen for the addition of 56 runs to their overnight tally.
Warner in a hurry
South Africa had resumed on 194-6 but lost Quinton de Kock in the third over of the day before the new ball accounted for Vernon Philander, Kagiso Rabada and finally opener Stephen Cook.
Cook, under pressure after making a minor contribution to the wins in the first two tests, eked out his second test century off 235 balls, bringing up the milestone by pulling Josh Hazlewood to the square leg for his eighth four.
He was unable to add any more in the five further deliveries he faced before Starc got one to nip back in and bowl him for 104 to bring an end to the innings.
"It's pretty disappointing to lose the Test match but it's hard to look past the fact that we've played great cricket," said South Africa captain Faf du Plessis, who has overseen a third successive series triumph for the Proteas in Australia.
"You don't just come here and beat them, you have to play some really good cricket, so to have done that over the majority of the tour makes me a really satisfied captain."
Warner was prevented from opening in Australia's first innings after Du Plessis's tactical declaration on 259-9 left him stranded off the field receiving treatment.
The Australia vice-captain looked like he was intent reaching the victory target on his own and had hit 47 runs off 51 balls when he went for a single, only for Renshaw to change his mind and leave him stranded as the bails came off.
Khawaja's place in the side is safe for the three-test series against the nation of his birth around the New Year despite his duck and he was named Man of the Match for contributing 145 of Australia's 383 first innings runs.
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:
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, 2-82, 3-131, 4-154, 5-190, 6-194, 7-201, 8-235, 9-250,10-250
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:
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, 2-64, 3-125
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
Umpires: R. Kettleborough & N. Llong
TV umpire: Aleem Dar
Match referee: Andy Pycroft
Result: Australia won by 7 wickets