Nathan Sharpe capped his last ever Wallabies Test with a win after Kurtley Beale scored a try in the corner with 20 seconds remaining to beat Wales 14-12 on Sunday morning (AEDT).
The game had looked to be going Wales's way at 12-9 with a minute to play, but replacement flanker Dave Dennis found a metre of space out wide with the Welsh defence flagging and fed Beale, who outpaced Alex Cuthbert to the corner.
Of course I'll miss it, it's what I've done since I can remember - I'm going to have to find some walls to run into every weekend just to get my head around things and ease my way out.
It was a ninth victory in 15 Tests of a marathon season for Australia and meant it leapfrogged South Africa into second in the IRB rankings.
But the defeat was Wales's seventh on the trot and denied it the chance of a first win over a southern hemisphere nation since its 2008 victory over the same opposition.
The loss also meant that Wales, the current grand slam champions and World Cup semi-finalists, was forced out of the top-eight seeds for the 2015 World Cup, the draw for which takes place on Monday.
But for Australia, the story which capped its marathon European tour centred on captain Sharpe, sporting a shiner under his right eye as a final memento from 116 Test appearances.
Still in kit and his eyes glazing over with emotion, the most-capped Wallaby forward reflected on his long career.
"Of course I'll miss it, it's what I've done since I can remember - I'm going to have to find some walls to run into every weekend just to get my head around things and ease my way out," said the second rower, who made his test debut in 2002.
Sharpe, 34, was twice talked out of retirement this year to answer Australia's call of need and led them in the Rugby Championship after injuries ruled out James Horwill, David Pocock and Will Genia.
"Probably the thing for me that I'll miss the most is being in that team environment and having a collective goal - that pressure cooker situation every weekend - as much as you love it, you hate it," Sharpe said.
"The big highs and the low lows."
The Wagga Wagga-born lock played in three World Cups and was on the losing side in the 2003 final against England. He is the second most capped Wallaby behind scrum-half George Gregan.
Sharpe, who scored eight tries for the Wallabies, was afforded one last chance to add to his points tally when he lined up to convert Kurtley Beale's last-gasp match-winning try.
Not a naturally born kicker, the ball did not stay airborne for long.
"The first and last time," he joked to reporters.
Leigh Halfpenny kicked four penalties for Wales, who had lost November matches against Argentina, Samoa and New Zealand, with Beale notching up three of his own for the visitors.
Beale missed two other penalty attempts and replacement Mike Harris another in the sixth match between the two sides in 13 months, the Wallabies winning all five previous encounters, including the third-place play-off at the World Cup and a closely-fought three-Test series on Australian soil in the summer.
Beale missed a straightforward early penalty attempt as referee Wayne Barnes took to his whistle against a series of sloppy Welsh ruck infringements.
The visitors, fielding just three players from last year's season-ending victory in Cardiff, dominated early possession and territory, but it was Wales who first set the stadium alight when Cuthbert was set free on his own line.
A fine covering tackle by Berrick Barnes smothered Cuthbert into touch.
Beale was successful with his second penalty, struck from the halfway line, and Halfpenny responded almost immediately with his own 52-metre effort.
The Welsh full-back then pushed the home side into the lead with a second penalty in the 23rd minute after returning Wallaby openside David Pocock was penalised for not rolling away in the tackle.
Halfpenny then split the defence and while he collided with Barnes chasing his own chip ahead across the line, Toby Faletau crashed through, only to be beaten to the ball by opposite number Wycliff Palu.
Beale drew the scores level with a second long-range penalty but failed with an easier effort that would have seen the Wallabies into the lead.
Wales, with fly half Rhys Priestland showing signs of his old confidence, looked to run everything, but Australia showed why it remains in the top three countries in the world with an aggressive, counter-rucking defence.
The Wallabies ended the half 9-6 up after Beale nailed his fifth attempt at goal after home captain Sam Warburton was penalised, again at the ruck, while Halfpenny sent a late effort wide.
The second period opened with a full seven minutes of aerial ping-pong, neither side able to capitalise on any real territorial gain.
Halfpenny, comfortably Wales' best player in the four November Tests, was on hand to again show his defensive abilities with a fine covering tackle with Ryan Jones on Drew Mitchell, who should have gone wide after a Barnes feint.
The Welsh full-back finally drew Wales level on 55 minutes with a penalty after the Wallaby scrum wilted and then put Wales into the lead when Sharpe was found on the wrong side of a ruck.
Replacement Mike Harris then saw his penalty drift wide as the Wallabies bid to find a way through the Welsh defence, which finally flagged when Dennis found Beale.
"It was a great game, as all our encounters have been this year," said Wallabies coach Robbie Deans.
"It was a great Test match to finish the year. Just to be in the game at the end is a credit to the players."
Deans's Wales counterpart Warren Gatland said: "I'm pretty gutted. Apart from that last minute, I thought we played some outstanding rugby."
Captain Sam Warburton called the defeat "demoralising", but insisted that the team would remain "positive and ambitious".