Georginio Wijnaldum handed under-pressure head coach Steve McClaren some welcome relief as Newcastle beat in-form Liverpool to slightly ease their relegation fears.
Reports in the run-up to the game suggested that the former England boss had just two matches to save his job, while talk of a rift among his backroom staff had done little to ease the tension on Tyneside.
However, players pilloried for their abject capitulations against Leicester and Crystal Palace produced a performance of real character and got their reward when Reds defender Martin Skrtel deflected Wijnaldum's 69th-minute shot over keeper Simon Mignolet. The Dutchman then added a second four minutes into stoppage time to hand McClaren's men a priceless 2-0 win in front of a crowd of 51,273.
Liverpool, for whom the defeat was just a second in 12 attempts under new manager Jurgen Klopp, were not at their clinical best with Christian Benteke and substitute Daniel Sturridge both guilty of bad misses, but the Magpies were good value for the points on a day when they restored a measure of pride.
Fans who had turned up fearing the worst having seen the Reds put six past Southampton in the Capital One Cup in midweek were pleasantly surprised as a previously hapless defence proved resilient and a midfield which had created little started to fire, if sporadically.
The visitors were fluent in their passing and forced three corners inside the opening 70 seconds, but they had to wait 21 minutes to create a meaningful opportunity when Dejan Lovren headed down Alberto Moreno's corner and Benteke stabbed the ball over from close range.
But as the half wore on, the Magpies started to make an impression with Wijnaldum and Moussa Sissoko prominent, and Papiss Cisse might have fired them ahead eight minutes later when, after skipper Fabricio Coloccini had dispossessed Benteke on the edge of the Newcastle penalty area, Wijnaldum slid the striker in.
However, as he tried to cut inside defender Martin Skrtel, Lovren arrived and the pair managed to snuff out the chance.
Chancel Mbemba headed over from Cisse's flick-on on the stroke of half-time and the dangerous Jordon Ibe blasted inches too high seconds later to suggest there might be more to come after the break.
Wijnaldum saw a 55th-minute shot deflected wide after good work by Sissoko and Jack Colback, but the visitors responded in kind with Ibe running at the home defence at will, and Klopp threw Adam Lallana and Sturridge into the mix when he replaced Benteke and Firmino with 28 minutes remaining.
But it was Newcastle who took the lead when Wijnaldum's persistence allowed him to send in a right-foot shot from a tight angle and in his efforts to block it, the sliding Skrtel could only help the ball over Mignolet.
Sturridge fired wastefully wide after being played in down the right with 15 minutes remaining and Lovren headed weakly at Rob Elliot as time ran down, but victory was assured deep into stoppage time when Wijnaldum deftly chipped Sissoko's pass over the advancing Mignolet to raise the roof at St James' Park.
TWEET OF THE MATCH
"#Klopp out" - Piers Morgan sums up Liverpool's failure to turn their dominance into goals at St James' Park.
Rob Elliot: 6
Daryl Janmaat: 7
Chancel Mbemba: 7
Fabricio Coloccini (Capt): 7
Paul Dummett: 7
Jack Colback (Gouffran, 77 mins): 6
Vurnon Anita: 7
Moussa Sissoko: 7
Siem de Jong (Perez, 68 mins): 6
Georginio Wijnaldum: 8
Papiss Cisse (Thauvin, 82 mins): 5
Ayoze Perez: 6
Yoan Gouffran: 6
Florian Thauvin: 6
Simon Mignolet: 6
Nathaniel Clyne: 7
Dejan Lovren: 7
Martin Skrtel: 6
Alberto Moreno: 7
Lucas Leiva: 6
Joe Allen: 6
Jordon Ibe: 8
James Milner: 7
Roberto Firmino (Sturridge, 62 mins): 6
Christian Benteke (Lallana, 62 mins): 6
Adam Lallana: 7
Daniel Sturridge: 6
Divock Origi: 6
Georginio Wijnaldum may have enjoyed a stroke of good fortune with the first goal, but the second was a superbly deft finish and just reward for a high-octane individual performance.
MOMENT OF THE MATCH
Wijnaldum's audacious 94th-minute chip over keeper Simon Mignolet did justice to Moussa Sissoko's perfect pass and sparked mass celebrations on Tyneside.
VIEW FROM THE BENCH
Steve McClaren will have been thrilled by the application and commitment shown by his players, but equally pleased with the way they kept their shape under intense pressure. Opposite number Jurgen Klopp was left to rue the chances that went begging on a day when his side mustered just one meaningful attempt on goal.
MOAN OF THE MATCH
Papiss Cisse might have made life far more comfortable for Newcastle had he been able to shake the ring-rust from his legs when presented with a golden opportunity just before the break.
WHO'S UP NEXT:
Tottenham v Newcastle (Premier League, Sunday, December 13)
FC Sion v Liverpool (Europa League, Thursday, December 10)