James Tedesco has crossed with 32 seconds left on the clock to give NSW a stunning 26-20 victory in the State of Origin decider to defend their shield.
In one of the most dramatic finishes in Origin history, scores were locked at 20-all in the final minute on Wednesday when Mitchell Pearce had the ball in his hands.
His looping cutout for Tom Trbojevic resulted in Blake Ferguson tiptoeing down the sideline, before finding Tedesco inside for the game-winner.
It came after Queensland forward Josh Papalii crossed in the 77th minute and debutant Ethan Lowe nailed a pressure conversion to level the game.
However, Tedesco, who was later awarded with the Wally Lewis medal as the player of the series, proved to be the hero with his miracle finish.
The dramatic ending snapped a run of seven straight defeats in Origin deciders for the Blues, dating back to the start of the Maroons' dynasty in 2006.
It is also Pearce's first series win over Queensland in eight attempts.
The extraordinary last-gasp play is certain to rival the famous Mark Coyne miracle try in game one of the 1995 series, ultimately won by the Blues.
"If he doesn't throw the ball out there and he doesn't spot the space, we're going into extra time," NSW coach Brad Fittler said.
"They were going better than us."
NSW appeared headed for a comfortable finish when Tedesco and Damien Cook broke an 8-all deadlock with tries in the space of nine minutes in the second half.