Mo Salah and Darwin Nunez scored late as Liverpool ended their Champions League group stage with a fifth successive win in the competition.
The Egyptian was on hand to knock home after Alex Meret had saved a Nunez header in front of the Kop, with the rebound eventually smuggled over the line.
Nunez then bagged another close range strike in the seventh minute of added time after Meret had saved a Virgil van Dijk header.
The in-form Napoli arrived at Anfield on a run of 13 successive wins, and although they suffered defeat on Merseyside they still finish top of Group A.
Defender Leo Ostigard thought he'd given the Italians the lead in the second half of a tight affair, only for his header from a free-kick to be ruled out by VAR.
Here are the game's talking points.
1. Mo Salah keeps up his run
It won't be amongst his very best, and it even look as though it might get taken away from him at one point, but Salah was there to bundle the ball over the line in front of the Kop.
Did it change anything in terms of the group? No.
Is it going to magically transform Liverpool's season? No.
But it was a goal in a fifth successive European game for Salah, and while he can't catch Erling Haaland in the Premier League he might just have a different Golden Boot in the corner of his eye.
Nunez's late strike, and the general havoc he brings, was great to see too, and in Europe at least Liverpool are very much on track.
2. Reds get a slice of luck
For a long time it was the only talking point of the game, and the marginal VAR decision that went against defender Ostigard was certainly a close one.
The centre-back was eventually found to have been offside by a mere shoulder before he headed home at the Anfield Road End, with his header sparking wild celebrations from the visiting fans, and then mocking from Liverpool's some four minutes later.
Harsh? Certainly. What VAR is supposed to be for? Yes.
3. Jurgen Klopp goes back to what he knows
Liverpool's recent struggles have seen Klopp start to do something that we had never really seen from him before in his Liverpool tenure.
Usually so wedded to his 4-3-3 system, albeit it with the odd tweak here and there, Klopp has been arranging his sides in increasingly confusing formations, partly to cover for the missing bodies, partly to to paper over cracks in his side and partly, you suspect, to try and mange their physical workload.
It is an understandable approach, but when you've been so wedded to a way of playing for so long it was always going to cause problems, and then they caused more problems, and so on.
This was by no means a perfect return to what Liverpool know, but they at least looked solid.
4. Ibrahima Konate steps back in to show the future
When there has been justified talk of how Klopp failed to evolve his Liverpool team over the years you can have a large degree of sympathy for him, because three of the key players in that evolution have been largely absent this season.
Luis Diaz and Diogo Jota are still out of course, and neither will be seen this side of the World Cup, but Ibrahima Konate returned here for the first time since the 7-1 win at Rangers and underlined why he will have a key part to play for Klopp going forward.
The Frenchman had made himself Virgil van Dijk's first-choice partner by the back end of last season, but with injuries robbing him of a chance to do the same for this campaign, his commanding display here will be hugely welcomed by Klopp.
5. Khvicha Kvaratskhelia may be the best player you've never seen
Alright you might have caught a few Serie A games on TV this season, or maybe you were in Naples for Liverpool's miserable defeat there, or - more likely - you were at Anfield to catch a fleeting glimpse of the dazzling Georgian who has lit up Italian football this season.
But most of the football world is still waking up to the talent that lies within the Napoli No.77 shirt.
Kvaratskhelia was a roaming menace to Liverpool in the early stages, starting from the left and at times occupying three players as Trent Alexander-Arnold, Konate and James Milner were all enamoured with his skills.
We all are, in truth, and although there might be a fitness and conditioning question in his future, particularly should he move to another league, this is a player who makes football fun.
6. Curtis Jones moves up
With the switch back in formation there was a start for Curtis Jones on the left of the attack, with the young Scouser preferred there to Fabio Carvalho in the continued absence of Diaz and Jota, and with Darwin Nunez on the bench.
Jones can be a curious player, and he's undoubtedly been another luckless one for Liverpool when it comes to injuries, but there is a wonder just where he fits into the Reds' best system when he plays.
Lacking express pace and sometimes guilty of holding onto the ball for long, Jones can frustrate and just seems to be trying a little bit too hard right now having found himself in the team by virtue of injuries elsewhere.
He did well here though, and he can still be an important squad player for his side.