Bradley Barcola scored his first Premier League goal to snatch a dramatic late win for Liverpool which heaped more woe on struggling Sunderland.
The summer signing from Paris St-Germain, who came off the bench just after the hour mark, fired home in the fifth minute of added time to earn his side a last-gasp victory.
The France forward netted from close range after Alexis Mac Allister’s shot was deflected into his path, sending the Anfield crowd wild.
Florian Wirtz had put the Reds into an early lead on Wednesday and it looked as if it might be a comfortable night for Andoni Iraola’s side.
However, Wilson Isidor equalised for the visitors and Sunderland looked set to earn just their third away point this campaign – until Barcola’s late intervention.
Liverpool started brightly and unpicked a deep Sunderland defence thanks to some brilliance from Wirtz.
The German brilliantly lifted the ball over Robin Roefs to open the scoring with his fifth of the season in all competitions.
There was a brief VAR check to see if the ball had gone out of play in the build-up, but there was no conclusive angle to prove either way so it stood.
Going behind forced Sunderland out of their deep line and their attacking intent was rewarded in the 33rd minute when Isidor equalised.
The Sunderland striker’s shot towards the near post should have been saved by Liverpool keeper Alisson but it squirmed under the Brazilian and into the net.
Iraola made a triple change just after the hour mark as he turned to Barcola, Mac Allister and Milos Kerkez on the bench to try to find a winner and ensure they did not lose ground on their rivals towards the top of the table.
That came right at the end with Barcola finally breaking his Premier League duck.
Liverpool analysis: Barcola moment shows depth for Reds
Liverpool looked to be running out of ideas as the clock ticked down after they had piled late pressure on Sunderland, to seemingly no avail.
Barcola had earlier swiped at a good chance when Dominik Szoboszlai’s shot was pushed out by Roefs.
It looked set to be a frustrating night for the £123m signing from Paris St-Germain after he was rotated out by Iraola among four changes as the Reds prepare for a busy December.
The goal came with a touch of fortune given the deflection, but it also shows the depth of talent in the attacking areas for Liverpool, with Iraola able to turn to a player of Barcola’s quality to replace talented teenager Rio Ngumoha.
Mac Allister also came off the bench to play a role in the goal – with his deflected shot falling to the Frenchman.
Depth is going to be important if Liverpool are to challenge on multiple fronts this season, with a Champions League tie against Porto to come next week after their trip to Chelsea on Saturday and a Carabao Cup quarter-final against Bournemouth also on the radar.
Barcola scored a Champions League hat-trick for Liverpool at Austrian side Lask in October – but this was undoubtedly his biggest impact yet in English football.
Sunderland analysis: Late blow but positives to take
Liverpool’s late winner was a hammer blow for the Black Cats, who looked like they had done everything right to cling on to an important point.
It would not have been enough to lift Sunderland out of the bottom three, but it would have been a huge confidence boost.
The sight of Nordi Mukiele hobbling around late on putting his body on the line showed their fight, while Jules Ahoka cleared a Lewis Koumas effort off the line – and it appeared the visitors had withstood Liverpool’s late pressure.
Sunderland may regret showing the Reds a little too much respect, given they caused Liverpool problems when they opted to attack. And their well-organised defence repelled the hosts until deep into stoppage time.
There were positives to take from this performance and, with games against Newcastle, Nottingham Forest and Crystal Palace before Christmas, Sunderland will hope they have better opportunities to pick up much-needed victories.