The All Blacks have retained the Bledisloe Cup for another year, defeating the Wallabies in dramatic scenes for a 39-37 victory at Melbourne's Marvel Stadium.
Down 37-34 with time all but up, New Zealand were awarded a scrum, after Australia first-five Bernard Foley was called for time wasting on a kick for touch that would have ended the contest.
From the resulting play, fullback-turned-midfielder Jordie Barrett scored with the final play of the game to see the All Blacks snatch victory from the jaws of defeat and lock the trans-Tasman trophy away.
The result also marks their first successive victories in 2022, putting coach Ian Foster's side further ahead atop the Rugby Championship.
In a fast start, the All Blacks took just minutes to open the scoring, as hooker Samisoni Taukei'aho continued his stellar run of form by crossing for a try from a lineout drive.
First-five Richie Mo'unga put the All Blacks 10-0 up with a penalty, before the first half began to turn against New Zealand.
A penalty from first-five Bernard Foley provided Australia's first points and only a trysaving special to centre Rieko Ioane stopped the Wallabies equalling the scores.
But in less than 10 minutes, captain Sam Cane and midfielder David Havili were taken from the field for concussion checks, which both failed, and neither returned for the rest of the night.
With the captain off the field, the All Blacks conceded their first try, scored by No.8 Rob Valentini, with replacement flanker Dalton Papali'i shown a yellow card for an infringement in the build-up.
At 10-10, the first-half chaos was far from over, with the Wallabies hit by two yellow cards.
Winger Tom Wright was marched for a professional foul on counterpart Caleb Clarke, before replacement loose forward Darcy Swain was fortunate not to be shown red, after a cynical tackle on Quinn Tupaea, only on the field after Havili's exit.
The hit left Tupaea unable to stand without assistance and the All Blacks now sweating on his fitness for the rest of the year.
Despite the numerical advantage, the All Blacks couldn't capitalise against 13 men, as Taukei'aho was denied a second try by Aussie halfback Jake Gordon to finish the half deadlocked.
Taukei'aho could only be denied for so long. While it took just three minutes of the first half for the hooker to get his first try, he needed only 52 seconds to go over again after the break.
Another Foley penalty closed the gap back to four points, but the All Blacks struck again, as Mo'unga sliced the Wallabies apart and converted his own try to extend the lead to 24-13.
Four minutes later, the All Blacks added their fourth try, as Beauden Barrett's chip over the top landed perfectly for winger Will Jordan, who beat Australia's defence for his 20th try in just 20 tests.
Down 31-13, the Wallabies produced the kind of fightback that only the Bledisloe Cup can deliver.
Playing his first test in three years, Foley was instrumental in their reply, putting fullback Andrew Kellaway into score, after splitting the All Blacks line, despite shades of a forward pass.
A second Kellaway try set the cat among the pigeons, as he again proved too elusive and the Wallabies moved within four points at 31-27 with 10 minutes left.
A Mo'unga penalty moved New Zealand ahead by seven, setting Australia a converted try to at least level the scores.
That's exactly what Australia did. An exchange of passes on the left wing had winger Marika Koroibete put flanker Pete Samu in, as Foley held his nerve to land the sideline conversion that locked the scores at 34-34 with five minutes on the clock.
Despite his first half try, Valetini looked to have made his most important contribution in the dying minutes, winning the penalty that replacement halfback Nic White landed with his first attempt of the night to give Australia the lead for the first time.
Up 37-34 with seconds remaining, Australia appeared destined to send the Bledisloe Cup to a decider at Eden Park next week, but for all of Foley's brilliance, his gamesmanship at the death cost them a chance to end a losing streak dating back to 2002.
As Jordie Barrett went over for the winner, the Wallabies could only point at themselves for letting this one get away, sending both sides to Auckland for a return fixture - with only pride to play for.
All Blacks 39 (Taukei'aho 2, Mo'unga, Jordan, J.Barrett tries; Mo'unga 4 conversions & 2 penalties) Australia 37 (Valetini, Kellaway 2, Samu tries; Foley 4 conversions & 2 penalties, White penalty)