Australia 24 South Africa 23
Rob Horne scored a try two minutes from time that Bernard Foley converted to give Australia a one-point victory over South Africa at a rain-soaked Subiaco Oval in Perth on Saturday.
Israel Folau crossed for his 15th test try after two minutes but for much of the rest of the evening Australia were chasing the game and it was only when winger Horne went over in their best move of the match that victory looked likely.
Foley, who also kicked four penalties, stepped up to nervelessly slot the conversion and give coach Ewen McKenzie his first win over one of the southern hemisphere superpowers since he took over last year.
South Africa had a try from winger Cornal Hendricks and six penalties from the boot of Morne Steyn but will rue the yellow card to winger Bryan Habana, playing his 100th test, in the 65th minute that let the home side back into the match.