Aiden Markram scored 102 not out as South Africa beat Australia by 111 runs in the third One Day International at the JB Marks Oval on Tuesday.
In a South African total of 338 for six, Markram hit 102 not out.
South Africa bowled out Australia for 227 after surviving a furious assault by David Warner and Travis Head.
After sweeping a Twenty20 series 3-0, Australia won the first two games of the five-match series.
When Warner and Head thrashed 79 for the first wicket off only 48 balls, the tourists appeared to be on track for another victory.
Australia were 104 for one at the end of the 10-over power play, their second three-figure score while fielding restrictions were in place.
On a spin-friendly pitch, left-arm spinners Tabraiz Shamsi (two for 29) and Keshav Maharaj (two for 37) changed the course of the match before fast bowler Gerald Coetzee (four for 50) finished the Australian innings.
Maharaj also made a crucial fielding intervention, running out Warner, who had made 78 off 56 balls before slipping and losing his shoe as he set off for a single.
“We needed a positive one,” said South African captain Temba Bavuma.
“The batters knuckled down and we were banking on the wicket assisting the spin bowlers and it’s exactly what it did.
“The power play didn’t go as well as we wanted but the way we clawed it back was exactly what we’re looking for.”
The loss, according to Australian captain Mitchell Marsh, was “a little slip-up” in conditions that are likely to be replicated during the World Cup in India next month.
“Hopefully we learnt a lot from it,” he said.
South Africa got off to a great start when captain Temba Bavuma and opener Quinton de Kock put on 146 runs in 22.5 overs.
But Australia was able to slow down the scoring. Part-time off-spinner Travis Head took two wickets and 39 runs in 10 overs by bowling unchanged on a slow, dry pitch.
Markram and Marco Jansen’s sixth-wicket partnership of 63 runs off 31 balls gave the innings a late boost. The partnership ended when Sean Abbott took a spectacular diving left-handed catch on the cover boundary off Nathan Ellis.