Liverpool goalkeeper Alisson headed a sensational stoppage-time winner against West Bromwich Albion to put hopes of a top-four finish in their own hands.
West Brom had taken the lead on 15 minutes when Hal Robson-Kanu coolly curled a low shot beyond Alisson's reach.
Liverpool levelled on 33 minutes with a superb first-time shot by Mohamed Salah after the West Brom defence had been unable to clear their lines.
Salah's 22nd PL goal of the season also takes him level with Harry Kane of Tottenham Hotspur in the race for the Golden Boot.
Liverpool were close to going 2-1 up only two minutes later but Roberto Firmino's shot clipped the upright.
Both sides traded chances in an open second half and after Alisson produced a great block to deny Robson-Kanu a second goal, the goalkeeper then went up for a late corner and glanced home Trent Alexander-Arnold's delivery to seal a dramatic victory and become only the sixth goalkeeper in Premier League history to score.
The win means fifth-placed Liverpool are now one point and place behind Chelsea, who face third-place Leicester City on Tuesday in their penultimate match. Relegated West Brom remain 19th on 27 points.
See: West Brom report | Liverpool report
Next fixtures
West Brom: 19 May v West Ham (H)
Liverpool: 19 May v Burnley (A)
Match officials
Referee: Mike Dean. Assistants: Mark Scholes, Dan Robathan. Fourth official: Andy Madley. VAR: Kevin Friend. Assistant VAR: Darren Cann.
WHO'S GOING TO BE YOUR
MAN OF THE MATCH?
Vote at Full-time