(CNN) -- South Africa finished their tour of Australia on another high as they beat the home side by 39-runs in the final one-day international to replace the hosts at the top of the world rankings in the 50-over game.
South Africa, who won the earlier Test series, had also wrapped up the five-match one-day series going into the final clash in Perth.
But with the top global ranking at stake, it was a hotly-contested match with South Africa posting 288 for six in their 50 overs.
Hashim Amla made 97, sharing a 114 third wicket partnership with AB de Villiers, while rising star JP Duminy scoring 60 off 42 balls late on.
Australia were always up against it after debutant Lonwabo Tsotsobe dismissed Shaun Marsh and captain Ricky Ponting on the way to a four wickets for 50 runs haul.
Mike Hussey made 78 in the Australian recovery, before being dismissed by Tsotsobe and Brad Haddin blasted a quickfire 63, but wickets ccntinued to fall and the home side were finally dismissed for 249 in 48.5 overs.
It left Australia facing up to a 4-1 series defeat and South Africa on top of the International Cricket Council rankings.
"I guess it's a disappointing way for us to end this series," Ponting said at the post-match presentation.
"The South Africans have totally outplayed us right the way through."
Australia only held on to their No.1 ranking in Test cricket from the same opposition by drawing the final Test of their series.
They face arch-rivals England in an eagerly-awaited Ashes series this summer with doubts over their ability to replace former stars such as the recently retired Matthew Hayden, Shane Warne, Adam Gilchrist and Glen McGrath.
In other cricket news on Friday, renowned broadcaster and statistician Bill Frindall died following a short illness.
Frindall, who worked for the British Broadcasting Corporation (BBC), covered over 350 Test matches for BBC radio and earned the nickname "The Bearded Wonder" from late commentator Brian Johnston. He was 69.