Harvey Barnes scores stoppage-time winner in seven-goal thriller
At a glance
Harvey Barnes wins breathless game with 102nd-minute strike
St James' Park shows support towards Newcastle legend Kevin Keegan after he is diagnosed with cancer
Newcastle up to sixth as Leeds' seven-game unbeaten run ends
Newcastle United forward Harvey Barnes scored an incredible 102nd-minute winner as his side ended Leeds United's unbeaten run in an all-time Premier League classic.
It looked like the teams were going to share the spoils after Newcastle captain Bruno Guimaraes scored a penalty to make it 3-3 in the first minute of stoppage time at St James' Park.
But there was still time for one final twist in a topsy-turvy game as Barnes fired home through a crowd of bodies to send the stadium into raptures.
It was an emotional night as Newcastle supporters repeatedly sang the name of club legend Kevin Keegan, who has been diagnosed with cancer.
Keegan is one of the most transformational figures in the club's history, who left his mark as a player and manager, not least as the mastermind behind the Entertainers, who challenged for the Premier League title in 1996.
So it was rather fitting that this breathless game was packed with goals, drama and some cavalier defending after Leeds eventually broke the deadlock following an error from Malick Thiaw.
Thiaw slipped under pressure from Dominic Calvert-Lewin deep in Newcastle's half and the Leeds forward threaded the ball through to Brenden Aaronson, who clinically picked out the bottom corner from outside the box in the 32nd minute.
The goal served as a jolt for sleepy Newcastle, and the hosts quickly drew level thanks to a sidefooted finish from Barnes after Nick Woltemade deftly laid the ball off to his team-mate inside the box.
But Leeds were gifted the chance to restore their lead in first-half stoppage time after the tormented Thiaw handled the ball inside the area in a tussle with Calvert-Lewin.
Calvert-Lewin coolly sent goalkeeper Nick Pope the wrong way to put the visitors back in front with his ninth goal of an impressive season.
But Newcastle came roaring back after the break and Joelinton headed his side level following a clever assist from captain Guimaraes with the outside of his boot.
Aaronson then put Leeds back ahead once again in the 79th minute with an angled finish after Ilia Gruev pounced on a misplaced pass from Yoane Wissa to set up his team-mate.
But there was still time for Guimaraes to score a penalty before Barnes struck to send Newcastle up to sixth, while Leeds remain 16th.
Newcastle analysis: A fitting tribute to Keegan
4-3? It is a scoreline so often associated with Keegan.
Who could forget that chaotic game at Anfield in 1996 when Stan Collymore struck late for Liverpool to break Newcastle hearts?
This time, however, Newcastle were toasting a quite remarkable victory following a late turnaround of their own. Although late might be an understatement.
Barnes' dramatic strike was the latest winner on record scored in a Premier League match.
Cue bedlam on and off the pitch.
Newcastle head coach Eddie Howe is a measured figure - but even he was sent darting down the touchline in delight after the ball hit the back of the net.
This side kept going after falling behind for a third time and losing defender Fabian Schar, who was taken off on a stretcher with an injury.
Not only to draw level - but to finally find a way to take the lead once and for all.
It was a precious victory.
Newcastle have now won three Premier League games in a row for the first time this season.
And the manner of this win was a fitting tribute to Keegan.
Leeds analysis: Pride as unbeaten run ends
Leeds were 'naive' in 'heartbreaking' loss - Farke
Daniel Farke could not help but ruefully shake his head on the touchline.
The Leeds United manager has seen a lot in the game, but this? This was something else.
This was just the sixth time a side had taken the lead three times in a Premier League match only to lose.
But Farke was understandably "proud" of his players at full-time.
The visitors will take so much from this showing at one of the Premier League's fortresses.
They will also take so much from a remarkable unbeaten run.
Newly promoted Leeds went seven games undefeated in the Premier League, against Liverpool (twice), Chelsea, Manchester United, Brentford, Crystal Palace and Sunderland.
Leeds remain eight points clear of the relegation zone and, on recent evidence, they look like a side here to stay in the top flight.
What's next for these teams?
Newcastle host Bournemouth in the FA Cup on Saturday, 10 January (15:00 GMT) before contesting another home match against Manchester City in the first leg of their Carabao Cup semi-final on Tuesday, 13 January (20:00).
Leeds face Derby County at Pride Park in the FA Cup third round on Sunday, 11 January (12:00) before returning to Premier League action against Fulham at Elland Road on Saturday, 17 January (15:00).
Player of the match
After the opportunity to rate players has closed, the score displayed represents the average from all the submissions by BBC Sport users.