Mohamed Salah scored the winner as Liverpool won a five-goal thriller against Nottingham Forest at Anfield to boost their hopes of claiming an unlikely Champions League place.
After a drab opening half, the second half was an end-to-end classic as relegation-threatened Forest twice levelled.
Diogo Jota scored twice, with former Liverpool player Neco Williams as well as Morgan Gibbs-White responding for the visitors.
Salah netted his 16th Premier League goal of the season to put Jurgen Klopp's side ahead for the third time - and another equaliser proved beyond Steve Cooper's men, who remain in the relegation zone.
Forest have now collected three points from 11 games since their last victory, which was against Leeds United in February.
They have lost four games in a row and all three since a statement released by owner Evangelos Marinakis in support of Cooper that included the line "results and performances must improve immediately".
Liverpool have picked up successive wins since the superb comeback against Arsenal a fortnight ago and with Tottenham Hotspur still to play at Anfield at the end of the month and Newcastle United stuttering of late, Klopp's men cannot be dismissed from the top-four race.
Jota continues return to form
After a run of 20 Premier League games without a goal, Diogo Jota has scored four goals in his last two appearances for LiverpoolThe half-time music was still being played around the stadium well after play re-started, almost as if the club perhaps decided the fans required entertainment they weren't getting from the pitch.
In fact, the second period could barely have been more exciting, with the previously out-of-form Jota the star of the show.
The Portugal forward has struggled for form since a bad injury in the autumn, putting a dent to his previously high scoring record.
Indeed prior to last week's win at Leeds United, the former Wolverhampton Wanderers winger had not scored a club goal in more than a year.
Now he has scored more than once in successive games for the first time in his Liverpool career.
His opener was a poacher's effort as Jota advanced onto Fabinho's header across goal before applying a close-range finish.
He then exploited some slack Forest defending, with the visitors allowing him time to bring down a looping free-kick and apply a neat finish.
The stuffy draws at Chelsea and at home to Arsenal that were the springboard to wins against Leeds and Forest have given Klopp and his side the chance to end a campaign containing so much negativity on a high.
Forest's battle goes on
Given the chaotic nature of their season, it could be argued Forest have done well just to reach this point with their survival hopes still alive.
However, with two of their next three games at home, including a meeting with bottom side Southampton on 8 May, they are reaching the point of no return - and Marinakis might need to be brave to stick with Cooper, even though he retains the support from Forest's fans.
The acute disappointment on this occasion will come from the goals they conceded immediately after scoring.
Having found the net just five times in 15 away games this season, getting two in one game - at one of the top sides - was scarcely believable.
Yet Forest conceded again within four and three minutes respectively.
Cooper will take solace from a decent performance though, after Williams exploited space to punish his old club via a deflection and Gibbs-White converted an excellent first-time effort - via a double deflection - after Liverpool failed to clear a corner.
But Forest need points more than performances now and the sight of Renan Lodi turning away in disbelief as Salah celebrated Liverpool's third illustrated the desperate basic mistakes they simply must eradicate.
Touch of class from Forest fans
Nottingham Forest fans displayed a banner in solidarity with Liverpool supportsTragedy chanting has become one of the scourges of the modern game.
Given they were Liverpool's opponents on the day of the Hillsborough disaster in 1989, Forest are acutely aware of the human suffering created by such events.
The spontaneous applause that broke out as Forest fans unfurled a banner that both paid respect to the 97 victims of Hillsborough and called for an end to tragedy chanting, underlined the desire from the vast majority for it to stop.
Player of the match
Diogo JotaDiogo Jota
Nottingham Forest
Squad number7Player nameN Williams
Squad number12Player nameNavas
Squad number10Player nameGibbs-White
Squad number9Player nameAwoniyi
Squad number20Player nameJohnson
Squad number26Player nameMcKenna
Squad number28Player nameDanilo
Squad number32Player nameRenan Lodi
Squad number38Player nameFelipe
Squad number19Player nameNiakhaté
Squad number4Player nameWorrall
Squad number5Player nameMangala
Squad number23Player nameFreuler
Squad number16Player nameSurridge
Squad number25Player nameDennis
Squad number34Player nameA Ayew
Line-ups
Liverpool
Formation 4-3-3
1Alisson
66Alexander-Arnold5Konaté4van Dijk26Robertson
14Henderson3Fabinho17Jones
11Salah18Gakpo20Jota
1Alisson66Alexander-Arnold5Konaté4van Dijk26Robertson14Henderson3FabinhoSubstituted forThiago Alcántaraat 60'minutes17JonesSubstituted forMilnerat 81'minutes11Salah18GakpoSubstituted forNúñezat 60'minutes20JotaSubstituted forDíazat 81'minutesSubstitutes
2Gomez6Thiago Alcántara7Milner19Elliott21Tsimikas23Díaz27Núñez32Matip62KelleherNottm Forest
Formation 3-4-2-1
12Navas
38Felipe19Niakhaté26McKenna
7N Williams23Freuler5Mangala32Lodi
10Gibbs-White28dos Santos de Oliveira
9Awoniyi
12Navas38FelipeSubstituted forDennisat 87'minutes19Niakhaté26McKennaSubstituted forWorrallat 30'minutes7N WilliamsBooked at 83mins23FreulerSubstituted forJohnsonat 76'minutes5Mangala32LodiSubstituted forA Ayewat 87'minutes10Gibbs-White28dos Santos de Oliveira9AwoniyiSubstituted forSurridgeat 87'minutesSubstitutes
4Worrall11Lingard13Hennessey15Toffolo16Surridge20Johnson25Dennis34A Ayew41HammondLive Text
Match ends, Liverpool 3, Nottingham Forest 2.
Second Half ends, Liverpool 3, Nottingham Forest 2.
Offside, Liverpool. Andrew Robertson tries a through ball, but Jordan Henderson is caught offside.
Luis Díaz (Liverpool) wins a free kick on the left wing.
Foul by Moussa Niakhaté (Nottingham Forest).
Corner, Liverpool. Conceded by Joe Worrall.
Attempt missed. Brennan Johnson (Nottingham Forest) right footed shot from the centre of the box is high and wide to the right following a set piece situation.
Foul by Trent Alexander-Arnold (Liverpool).
Emmanuel Dennis (Nottingham Forest) wins a free kick on the left wing.
Attempt missed. Orel Mangala (Nottingham Forest) right footed shot from outside the box is close, but misses the top right corner. Assisted by Danilo.
Attempt saved. Orel Mangala (Nottingham Forest) header from the centre of the box is saved in the centre of the goal. Assisted by Brennan Johnson with a cross.
Attempt missed. Darwin Núñez (Liverpool) header from very close range is close, but misses to the right. Assisted by Andrew Robertson with a cross following a set piece situation.
Darwin Núñez (Liverpool) wins a free kick on the left wing.
Foul by Neco Williams (Nottingham Forest).
Substitution, Nottingham Forest. André Ayew replaces Renan Lodi.
Substitution, Nottingham Forest. Sam Surridge replaces Taiwo Awoniyi.
Substitution, Nottingham Forest. Emmanuel Dennis replaces Felipe.
Neco Williams (Nottingham Forest) is shown the yellow card for a bad foul.
Luis Díaz (Liverpool) wins a free kick in the defensive half.
Foul by Neco Williams (Nottingham Forest).
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