Steven Bergwijn scored two injury-time goals as Tottenham fought back from 2-1 down to snatch an incredible victory at Leicester in a thrilling finish at the King Power Stadium.
Leicester were moments away from inflicting a first Premier League defeat on Spurs since Antonio Conte took charge, before Bergwijn grabbed a 95th-minute equaliser from Matt Doherty's pass.
But there was more drama to come.
The Dutchman, who had only been introduced as 79th-minute substitute, then took the ball around goalkeeper Kasper Schmeichel in the seventh minute of stoppage time and scored the winner with the ball going in off the post.
It was a fitting finale to a thrilling match.
The Foxes had taken the lead against the run of play in the 24th minute with Patson Daka's clinical finish over visiting goalkeeper Hugo Lloris with the hosts' first shot on target.
But Harry Kane, who had earlier had a shot cleared off the line and also hit the crossbar, equalised just before half-time, collecting Harry Winks' ball forward, cutting inside Caglar Soyuncu and side-footing past Schmeichel.
James Maddison then put Leicester ahead in the 76th minute after he had linked up well with substitute Harvey Barnes and the hosts thought they were collecting the three points before Bergwijn's dramatic double.
Tottenham's win takes them above north London rivals Arsenal and up to fifth in the Premier League, while Leicester are 10th in the table.
More to follow.
helpHow to play
Rate players out of 10 throughout or after the game. The rater will close 30 minutes after the final whistle.
Rating range key1 = Give it up10 = Pure perfection
Leicester City
Squad number1Player nameSchmeichel
Squad number20Player nameChoudhury
Squad number4Player nameSöyüncü
Squad number23Player nameVestergaard
Squad number11Player nameAlbrighton
Squad number10Player nameMaddison
Squad number8Player nameTielemans
Squad number22Player nameDewsbury-Hall
Squad number33Player nameThomas
Squad number29Player nameDaka
Squad number37Player nameLookman
Squad number2Player nameJustin
Squad number7Player nameBarnes
Squad number42Player nameSoumaré
Tottenham Hotspur
Squad number2Player nameDohertySquad number18Player nameLo CelsoSquad number23Player nameBergwijnLine-ups
Leicester
Formation 3-5-2
1Schmeichel
20Choudhury4Söyüncü23Vestergaard
11Albrighton10Maddison8Tielemans22Dewsbury-Hall33Thomas
29Daka37Lookman
1Schmeichel20ChoudhuryBooked at 55mins4Söyüncü23Vestergaard11Albrighton10Maddison8Tielemans22Dewsbury-HallSubstituted forSoumaréat 88'minutes33ThomasSubstituted forJustinat 53'minutes29DakaSubstituted forBarnesat 75'minutes37LookmanSubstitutes
2Justin7Barnes12Ward17Pérez35Jakupovic38Daley-Campbell42Soumaré49McAteer62BruntTottenham
Formation 5-3-2
1Lloris
12Emerson Royal25Tanganga6D Sánchez33Davies3Reguilón
29Skipp8Winks5Højbjerg
10Kane27Lucas Moura
1Lloris12Emerson RoyalSubstituted forDohertyat 45'minutes25Tanganga6D SánchezBooked at 59mins33Davies3ReguilónSubstituted forBergwijnat 79'minutesBooked at 90mins29Skipp8WinksSubstituted forLo Celsoat 74'minutes5Højbjerg10Kane27Lucas MouraSubstitutes
2Doherty11Gil14Rodon18Lo Celso19R Sessegnon20Alli22Gollini23Bergwijn44ScarlettReferee:Jonathan MossAttendance:31,986Live Text
Match ends, Leicester City 2, Tottenham Hotspur 3.
Second Half ends, Leicester City 2, Tottenham Hotspur 3.
Goal! Leicester City 2, Tottenham Hotspur 3. Steven Bergwijn (Tottenham Hotspur) right footed shot from the right side of the box to the bottom left corner. Assisted by Harry Kane with a through ball following a fast break.
Goal! Leicester City 2, Tottenham Hotspur 2. Steven Bergwijn (Tottenham Hotspur) right footed shot from the centre of the box to the bottom left corner. Assisted by Matt Doherty.
Steven Bergwijn (Tottenham Hotspur) is shown the yellow card.
Foul by Steven Bergwijn (Tottenham Hotspur).
Çaglar Söyüncü (Leicester City) wins a free kick in the defensive half.
Japhet Tanganga (Tottenham Hotspur) wins a free kick in the attacking half.
Foul by Youri Tielemans (Leicester City).
Attempt blocked. Pierre-Emile Højbjerg (Tottenham Hotspur) right footed shot from outside the box is blocked. Assisted by Steven Bergwijn.
Attempt blocked. Harvey Barnes (Leicester City) right footed shot from the centre of the box is blocked. Assisted by James Justin.
Substitution, Leicester City. Boubakary Soumaré replaces Kiernan Dewsbury-Hall.
Foul by Harry Kane (Tottenham Hotspur).
James Justin (Leicester City) wins a free kick in the defensive half.
Attempt blocked. Kiernan Dewsbury-Hall (Leicester City) left footed shot from outside the box is blocked.
Foul by Harry Kane (Tottenham Hotspur).
James Justin (Leicester City) wins a free kick in the attacking half.
Foul by Ben Davies (Tottenham Hotspur).
Youri Tielemans (Leicester City) wins a free kick in the defensive half.
Attempt blocked. Youri Tielemans (Leicester City) left footed shot from outside the box is blocked.
Our coverage of your Premier League club is bigger and better than ever before - here's everything you need to know to make sure you never miss a moment