England beat India by 118 runs in their final Test despite defiant centuries from KL Rahul and Rishabh Pant, as a series full of twists reached a compelling conclusion at The Oval on Tuesday.
Chasing an improbable 464 for victory, India were eventually dismissed inside the last hour for 345, with James Anderson taking the final wicket - his 564th in Test cricket, taking him past Australian great Glenn McGrath as the most successful fast bowler of all time.
The 36-year-old Anderson received a standing ovation as he walked off with Alastair Cook, England's most-capped player and record Test run scorer who marked his 161st and final match on Monday with an emotional century.
For most of the day, however, the story was of spirited Indian resistance that at one point gave them an outside chance of an unimaginable consolation victory, having gone into the fifth and final Test 3-1 down.
With India beginning the day on a precarious 58 for 3, a full day's play looked unlikely for the sparse crowd.
But shortly after tea they were motoring along at 325 for 5 with Rahul and Pant's partnership worth 204.
Opener Rahul, who had earlier shared a 118-run fourth-wicket partnership with Ajinkya Rahane, was eventually bowled for 149 by an Adil Rashid 'wonder ball' that pitched way outside leg stump before spinning back out of the rough and hitting off.
The 20-year-old Pant lit up a murky day with a sensational maiden century to become the first Indian wicketkeeper to score a ton in England, striking three fours off one Ben Stokes over.
He struck 19 boundaries, including four sixes in a fearless display of shot-making, but shortly after Rahul's exit he holed out trying to smash Rashid out of the ground.