Stuart Broad ended his glittering career by bowling England to another dramatic victory in the fifth Test against Australia to leave a memorable Ashes series level at 2-2.
Broad, in his final Test before retiring, took the last two wickets as England bowled out the tourists for 334 to win by 49 runs in front of a raucous crowd at The Oval.
Chris Woakes was immense in taking 4-50 while off-spinner Moeen Ali, battling a groin injury in the last Test of his career, picked up a crucial 3-76.
Resuming on 135-0 in pursuit of 384, Australia lost David Warner and Usman Khawaja to Woakes' morning burst, while Mark Wood accounted for Marnus Labuschagne.
The visitors were put back on course for one of their greatest run-chases by Steve Smith, who made 54, and 43 from Travis Head.
But after a rain delay of more than two hours, Woakes and Moeen were the architects of an Australian collapse of five wickets for 30 runs.
Alex Carey and Todd Murphy raised tension with a ninth-wicket stand of 35 only for Broad to produce a last moment of theatre.
Looking to change England's luck, Broad switched the bails at the non-striker's end and, next ball, bowled a beauty to have Murphy caught by wicketkeeper Jonny Bairstow.
Broad then had Carey caught behind to seal victory and, amid high emotion at a ground renowned for goodbyes, left the field arm in arm with Moeen.
England's win replicates the 2-2 draw of four years ago and preserves an unbeaten home record in Ashes series that stretches back to 2001.
Though Australia retain the urn, which they will defend down under in 2025-26, their wait for a win in this country will be up to 26 years when they next visit in 2027.
Memorable Ashes has fitting finale
This was a magnificent finale to a series for the ages, another tense affair in front of a passionate crowd with the added drama of the rain delay thrown in.
Before this summer, 25 of the 340 previous Ashes Tests had been won by three wickets or fewer, or 50 runs or fewer. This series has had four such victories.
The action on Monday was never less than compelling. Led by Woakes, England were excellent with the ball, only for old foe Smith to threaten another act of defiance.
If was after the rain delay that the match swung decisively in England's direction, with four wickets falling in as many overs. The scalp of Smith in particular sparked wild celebrations on the field and in the stands, a mixture of delight and relief.
In the end, a draw feels like a fair result at end of a wonderful battle between cricket's oldest rivals. Australia took advantage of England's mistakes to lead 2-0 before the hosts roared back. Ben Stokes' side probably would have won 3-2 had rain not ruined the end of the fourth Test.
It has been a series of countless memorable moments: Zak Crawley driving the first ball for four, Stokes' declaration on the first day of the series, the controversy around Bairstow being stumped at Lord's, the nerve-shredding conclusion to the third Test and Crawley's hundred at Old Trafford to name a few.
But the enduring image was of Broad, an Ashes warrior, first conjuring the wicket of Murphy with one of his old tricks, then sparking joyous scenes with his final delivery in Test cricket.
Broad magic after Woakes and Moeen break Aussies
Neither Woakes nor Moeen were in England's plans at the start of the summer, but have played vital roles in levelling the series.
Moeen, out of retirement, has overcome a finger injury and the groin problem to bat at number three and lead the spin attack. Woakes, balancing the side because of Stokes' inability to bowl, ends with 19 wickets from only three matches and was named player of the series.
England were flat on Sunday, yet on Monday had use of a ball that had been switched only 11 deliveries before play was ended by rain on the fourth day. With it, Woakes was a constant threat, finding devilish seam movement to spearhead the attack.
Warner poked behind for 60 and Khawaja was pinned on the crease to be lbw for 72. After Labuschagne edged Wood to the safe hands of Crawley at second slip, England had taken 3-29, only to be stalled by Smith and Head.
Woakes and Moeen were rejuvenated after the rain break. Moeen drew Head into an edge to slip, before Mitchell Marsh inside-edged on to his pad and was athletically caught by Bairstow.
In between, Woakes struck the all-important blow to have Smith edge to second slip, before Mitchell Starc fell in the same manner. When Australia captain Pat Cummins miscued Moeen into his pad and was caught by Stokes, the stage was set for Broad.
As England opted against taking the second new ball, Broad regularly beat the bat in the frustrating stand between Carey and Murphy, which evoked memories of Cummins and Nathan Lyon guiding Australia to victory in the first Test.
Just as England might have contemplated a change, Broad accounted for Murphy, resulting in a release of emotion from the crowd that had spotted the changing of the bails. When he had finished celebrating, Broad patted the bails in acknowledgement.
It seemed like he might miss out on the fairytale ending when Crawley dropped an edge off Carey, but Broad would not be denied a final moment of glory as an England cricketer.
Australia lift the urn but fail in their mission
Australia were crowned world Test champions on this ground in June and take the urn back down under, yet have failed in their stated aim of ending the long wait for a series win in this country.
They have been outplayed in the final three Tests, but for stages of the last two days at The Oval got into a position from where they could have pulled off their second-highest chase in Tests.
First through the Khawaja-Warner opening stand, then when Smith and Head were adding 95, Australia were on course.
When Smith, on 39, was dropped by leg slip Stokes, who lost control of the ball after taking it above his head then hitting his hand on his own thigh, it felt like a huge turning point.
Even after the rain, Australia had plenty of time - 47 overs in which to score the 146 runs still required - only to fall apart under the pressure applied by England's bowlers and the expectant crowd.
This result means an entire generation of Australian cricketers will go through their careers without winning a series here: Khawaja, Warner, Smith, Starc, Hazlewood and the injured Lyon are all unlikely to be back.
Australia's attempt to combat the hosts' Bazballing ways has led to a fascinating clash of styles. A 3-1 win would have been a remarkable achievement but not a fair reflection of England's dominance of the second half of the series.
'A dream finish' - what they said
Stokes hails 'incredible' comebackBBC cricket correspondent Jonathan Agnew on Test Match Special: "I really don't think Stuart Broad could have had a better script than this, it's a dream finish."
Former England captain Michael Vaughan on TMS: "Fairytales can happen. An incredible crowd, a brilliant series. This has been absolutely incredible, it's had everything.
"Broad bowled beautifully today, I don't know why he's quitting. He played magnificently. Australia controlled the game at times but this England side have got this knack of fighting back."
Former England captain Sir Alastair Cook on TMS: "It had to be Stuart Broad, it just had to be. That's why chasing such a big total is so hard. The crowd was right behind England, you just felt like they had that edge."