Match ends, Newcastle United 2, Liverpool 3.
Divock Origi's late winner sent Liverpool top of the Premier League with victory at Newcastle United to put the pressure back on Manchester City and ensure the title race will go to the final game.
Origi - on as substitute for Mohamed Salah after he was taken off on a stretcher with a head injury sustained in a collision with Newcastle keeper Martin Dubravka - headed in Xherdan Shaqiri's free-kick in the 86th minute.
It gave Liverpool three points after a topsy-turvy night on Tyneside.
Now Manchester City must beat Leicester City at Etihad Stadium on Monday to ensure they retain the initiative going into the final round of games next Sunday.
Liverpool went ahead after 13 minutes when Virgil van Dijk arrived unmarked on the end of Trent Alexander-Arnold's free-kick.
Newcastle were quickly level when Christian Atsu scored from close range after Alexander-Arnold handled Salomon Rondon's shot on the line but Salah took advantage of more poor marking to volley home another fine delivery from the young defender.
Rondon, a handful all night, drew Newcastle level once more nine minutes after the break when Liverpool failed to clear a corner and Jurgen Klopp's side suffered another blow when Salah was taken off after a lengthy delay.
Origi was introduced and made the decisive contribution that keeps the title race alive - although Salah's injury is a worry with Liverpool attempting to claw back a 3-0 deficit against Barcelona in the Champions League semi-final second leg at Anfield on Tuesday.
- 'Liverpool survive night laced with danger – and now look to Rodgers for helping hand'
- We have qualified for our final - Klopp
- Salah could face Barca but Firmino out
- How the title race could still go to a 39th game play-off
Liverpool refuse to go away
Liverpool simply refuse to buckle in their pursuit of Manchester City - no matter how long they have to wait to get the victories they require.
Klopp's side are showing remarkable drive and resilience, illustrated by the manner in which they have won so many games in the closing stages, especially when the pressure has been on.
There have been prime examples at home to Everton and Tottenham but in recent weeks they have stayed the course to outlast opponents such as Fulham, Southampton and now Newcastle away from home.
And here, in this unforgiving Tyneside atmosphere, they overcame adversity and a Newcastle side who were in no mood to stand meekly aside despite Premier League safety being assured.
Liverpool were vulnerable in defence but this is a side that carries a persistent threat and it was the introduction of the likes of Shaqiri and Origi that made the difference.
Liverpool could have been forgiven for thinking the fates were against them when Salah took that sickening blow in an accidental aerial collision with Dubravka, the Egyptian lying on the floor for several minutes before being taken away on a stretcher to sympathetic applause from the entire stadium.
And yet they responded once more, digging deep to secure three points with Origi's glancing header and this means Manchester City know the stakes are huge when they face Brendan Rodgers' in-form side on Monday.
What next for Newcastle and Benitez?
Rafael Benitez spent the entire night taking the acclaim of the Toon Army, from before kick-off to a post-match lap of honour when the supporters chanted long and loud for the Spaniard to agree a new deal to stay at St James' Park.
The messages are still mixed but not here among Newcastle's fanbase. There is only one outcome these fans, who idolise Benitez, want.
Whether Benitez gives them what they desire remains to be seen but once again he has kept a workmanlike squad in the Premier League with room to spare and now wants the investment to send them into the top 10.
Ironically, on this night, some of the Benitez trademarks were missing as wretched defensive organisation allowed Liverpool to cash in on each of their goals.
But, as he led the players around St James' Park to take the supporters' applause it was clear that those fans now want the final line of this season's story to be written with Benitez's name on a new deal.
When asked about his future, Benitez said: "We have been talking the last week and hopefully in one or two weeks will have more news."
Man of the match - Andrew Robertson (Liverpool)
Klopp 'doesn't feel pressure' - reaction
Liverpool boss Jurgen Klopp, speaking to BBC Sport: "I know what kind of boys I have - who doesn't know after the game today? If anyone thought Newcastle weren't playing for anything, wow, that was competitive - but we deserved to win.
"I only have to help the boys. I don't feel pressure. If we are champions then we are champions, you can't feel pressure when you do your best.
On Divock Origi's winning goal: "That's nearly a fairytale. And now we are qualified for our final on Sunday against Wolves. Of course before that we play Barcelona but I'm not thinking of that yet and then we will see."
Newcastle boss Rafael Benitez, speaking to BBC Sport: "I'm really proud because it was a difficult game against a very good team but the players gave everything. The fans appreciate that and were behind the team, we couldn't ask for more.
"We made a few mistakes at set pieces but in terms of effort and desire we did quite well. We are trying to make sure we don't make so many mistakes. I don't know about the third goal but the first two we can do much better.
"We have been quite consistent, working really hard as a team and as a unit, staying very compact. It was a great performance from us."
Liverpool love headers and subs - stats
- Liverpool have scored 18 headed goals in the Premier League this season and 12 goals via substitutes, more than any other team in both categories.
- The Reds have scored more goals against Newcastle in the Premier League than against any other team (98).
- Liverpool's Mohamed Salah scored his 100th league goal in European top-flight football, with 56 of those coming in the Premier League (also 35 in Italian Serie A and 9 in Swiss Super League).
- Liverpool are the first team in Premier League history to have at least two defenders provide 10+ assists each in a single campaign (Trent Alexander-Arnold 11, Andy Robertson 11).
- Newcastle's Salomon Rondon has hit double figures for goals in a Premier League season for the first time.
- Only Chelsea's Eden Hazard (48%) has had a hand in a higher proportion of his team's goals in the Premier League this season than Rondon (45% - scoring 10 goals and assisting 7 of 38).
Liverpool host Wolves at Anfield on the final day of the season - Sunday, 12 May - while Newcastle are away at Fulham, with both matches kicking off at 15:00 BST.
- 5SchärBooked at 45minsSubstituted forMutoat 90+1'minutes
- 4Ki Sung-yueng
- 6LovrenSubstituted forMilnerat 83'minutesBooked at 90mins
- 4van Dijk
- 5WijnaldumSubstituted forShaqiriat 66'minutes
- 11SalahSubstituted forOrigiat 73'minutes
- Andre Marriner
- Shots on Target
Second Half ends, Newcastle United 2, Liverpool 3.
Virgil van Dijk (Liverpool) wins a free kick in the defensive half.
Foul by Salomón Rondón (Newcastle United).
Corner, Newcastle United. Conceded by Andrew Robertson.
Offside, Newcastle United. Salomón Rondón tries a through ball, but Yoshinori Muto is caught offside.
Attempt blocked. Salomón Rondón (Newcastle United) right footed shot from outside the box is blocked.
James Milner (Liverpool) is shown the yellow card for a bad foul.
Foul by James Milner (Liverpool).
Christian Atsu (Newcastle United) wins a free kick in the attacking half.
Substitution, Newcastle United. Yoshinori Muto replaces Fabian Schär.
Goal! Newcastle United 2, Liverpool 3. Divock Origi (Liverpool) header from very close range to the top left corner. Assisted by Xherdan Shaqiri with a cross following a set piece situation.
Fabinho (Liverpool) wins a free kick on the right wing.
Foul by Matt Ritchie (Newcastle United).
Corner, Liverpool. Conceded by Paul Dummett.
Substitution, Liverpool. James Milner replaces Dejan Lovren.
Foul by Daniel Sturridge (Liverpool).
Matt Ritchie (Newcastle United) wins a free kick in the defensive half.
Fabinho (Liverpool) wins a free kick in the defensive half.
Foul by Ki Sung-yueng (Newcastle United).