Mohamed Salah scored his 200th Liverpool goal as Jurgen Klopp's side produced a late comeback against 10-man Crystal Palace to move top of the Premier League and increase the pressure on former boss Roy Hodgson.
Salah became only the fifth player to reach that landmark for the club, joining Ian Rush, Roger Hunt, Gordon Hodgson and Billy Liddell, when he ignited the fightback with a 76th-minute equaliser.
It was Harvey Elliott who delivered the decisive moment inside the first of 10 minutes of added time, producing a stunning strike from the edge of the penalty area to lift Liverpool above Arsenal.
Salah's goal arrived just 98 seconds after Jordan Ayew was dismissed for a second bookable offence, and the visitors had failed to land a shot on target prior to that moment.
Palace, booed off by their supporters following a disappointing home loss to Bournemouth on Wednesday, were on course to deliver a surprise blow to the Red's title aspirations following Jean-Philippe Mateta's penalty.
The game had continued for more than one minute after Jarell Quansah caught Mateta when attempting to clear a cross before the video assistant referee intervened - but referee Andy Madley did not take long to award Palace a spot-kick after being sent to the pitchside monitor.
Palace had seen a penalty decision in their favour overturned during the first half when Madley took three minutes to review a challenge by Will Hughes on Endo in the lead-up to Virgil van Dijk's foul on Odsonne Edouard inside the box.
Liverpool, though dominant, struggled throughout to break the hosts down and the returning Alisson came to his side's rescue in stunning fashion in the first half when he pushed Jefferson Lerma's first-time shot on to the post.
The visitors again had the Brazilian to thank for another excellent stop to prevent Joachim Andersen providing a dramatic twist with a header from a free-kick in the 100th minute.
Having eventually ended Palace's spirited resistance, victory took the Reds one point above last season's runners-up Arsenal, who travel to third-placed Aston Villa later on Saturday (17:30 GMT).
Follow live text commentary of Saturday's Premier League action hereMore to follow.
How to play
Rate players out of 10 throughout or after the game. The rater will close 30 minutes after the final whistle.
Rating range key1 = Give it up10 = Pure perfection
Crystal Palace
Squad number1Player nameJohnstone
Squad number2Player nameWard
Squad number16Player nameAndersen
Squad number6Player nameGuéhi
Squad number17Player nameClyne
Squad number19Player nameHughes
Squad number26Player nameRichards
Squad number8Player nameLerma
Squad number9Player nameJ Ayew
Squad number22Player nameÉdouard
Squad number15Player nameSchlupp
Squad number7Player nameOlise
Squad number14Player nameMateta
Squad number29Player nameAhamada
Squad number31Player nameMatthews
Squad number52Player nameOzoh
Liverpool
Squad number1Player nameAlisson
Squad number66Player nameAlexander-Arnold
Squad number78Player nameQuansah
Squad number4Player namevan Dijk
Squad number21Player nameTsimikas
Squad number8Player nameSzoboszlai
Squad number3Player nameEndo
Squad number38Player nameGravenberch
Squad number11Player nameMohamed Salah
Squad number9Player nameNúñez
Squad number7Player nameDíaz
Squad number2Player nameGomez
Squad number5Player nameKonaté
Squad number17Player nameJones
Squad number18Player nameGakpo
Squad number19Player nameElliott
Line-ups
Crystal Palace
Formation 4-3-3
1JohnstoneSubstituted forMatthewsat 87'minutes2WardBooked at 37mins16AndersenBooked at 90mins6Guéhi17Clyne19HughesSubstituted forOzohat 90+5'minutes26RichardsBooked at 71mins8LermaBooked at 64minsSubstituted forOliseat 68'minutes9J AyewBooked at 75mins22ÉdouardSubstituted forMatetaat 45'minutes15SchluppSubstituted forAhamadaat 84'minutesBooked at 90minsSubstitutes
5Tomkins7Olise11França de Oliveira14Mateta23Ebiowei29Ahamada31Matthews44Riedewald52OzohLiverpool
Formation 4-3-3
1Alisson66Alexander-Arnold78QuansahSubstituted forKonatéat 57'minutes4van Dijk21Tsimikas8SzoboszlaiSubstituted forJonesat 74'minutes3EndoSubstituted forGomezat 45'minutesBooked at 90mins38GravenberchSubstituted forGakpoat 57'minutes11Salah9NúñezSubstituted forElliottat 74'minutes7DíazBooked at 90minsSubstitutes
2Gomez5Konaté17Jones18Gakpo19Elliott50Doak53McConnell62Kelleher84BradleyReferee:Andy Madley
Attendance:25,103
Live Text
Match ends, Crystal Palace 1, Liverpool 2.
Second Half ends, Crystal Palace 1, Liverpool 2.
Naouirou Ahamada (Crystal Palace) is shown the yellow card for a bad foul.
Luis Díaz (Liverpool) wins a free kick in the defensive half.
Foul by Naouirou Ahamada (Crystal Palace).
Corner, Crystal Palace. Conceded by Cody Gakpo.
Attempt blocked. Jean-Philippe Mateta (Crystal Palace) header from the centre of the box is blocked. Assisted by Michael Olise with a cross.
Corner, Crystal Palace. Conceded by Alisson Becker.
Attempt saved. Joachim Andersen (Crystal Palace) header from the centre of the box is saved in the bottom left corner. Assisted by Michael Olise with a cross.
Luis Díaz (Liverpool) is shown the yellow card.
Foul by Luis Díaz (Liverpool).
Michael Olise (Crystal Palace) wins a free kick on the right wing.
Joe Gomez (Liverpool) is shown the yellow card for a bad foul.
Foul by Joe Gomez (Liverpool).
Naouirou Ahamada (Crystal Palace) wins a free kick in the defensive half.
Joachim Andersen (Crystal Palace) is shown the yellow card for a bad foul.
Luis Díaz (Liverpool) wins a free kick in the attacking half.
Foul by Joachim Andersen (Crystal Palace).
Curtis Jones (Liverpool) wins a free kick in the defensive half.
Foul by David Ozoh (Crystal Palace).