Trent Alexander-Arnold’s late winner moved Liverpool within three points of the Premier League title and relegated Leicester City.
The full-back, who has been linked to a potential move to Real Madrid, scored 14 minutes from time with an angled effort after Liverpool had been frustrated by the Foxes.
Alexander-Arnold’s goal came after a goalmouth scramble, and he celebrated wildly with the Liverpool fans, even hanging his shirt from the corner flag.
The win sets up a potential title celebration for Liverpool against Tottenham Hotspur next Sunday.
The match had been tense, with both Mohamed Salah and Diogo Jota hitting the woodwork earlier.
Leicester had chances too, with Wilfred Ndidi also hitting the woodwork. The Foxes’ relegation marks a disappointing season after returning to the top flight.