Match ends, Napoli 2, Arsenal 0.
Napoli 2-0 Arsenal
Arsenal qualified for the Champions League knockout stages as Group F runners-up, despite losing to Napoli.
The Gunners, who have reached the second phase for the 14th successive season, weathered early pressure before going close via Olivier Giroud.
Gonzalo Higuain put Napoli ahead before the Gunners' Mikel Arteta was sent off.
And although Jose Callejon scored a second for Napoli in injury time, Borussia Dortmund's 2-1 win at Marseille eliminated the Italian side.
When Argentine striker Higuain struck after 73 minutes, Napoli were on course to qualify for the last 16.
But Kevin Grosskreutz's goal for Dortmund three minutes from time in Marseille sent last season's runners-up through in their place.
Arsenal, who had to lose by three goals in order to miss out, took the sting out of the game with some controlled possession and there was no time for Napoli to grab a third after Callejon had lobbed Wojciech Szczesny to double their lead.
Dortmund, Arsenal and Napoli all finished on 12 points, but the Germans beat Arsenal to top spot on a better head-to-head record. The Gunners pipped the Italians to second place on goal difference.
As runners-up the Gunners will play a top seed, meaning they will be up against holders Bayern Munich, Real Madrid, Barcelona, Paris St-Germain or Atletico Madrid.
Arsene Wenger's side may have been forgiven for not approaching Napoli in their usual attacking manner, but they soon found a rhythm to their passing after an energetic opening from the hosts which saw Goran Pandev test Szczesny with an early shot.
Arsenal's first meaningful opening came on 23 minutes when a flowing exchange of passes ended with France striker Giroud's angled shot being beaten away by home goalkeeper Rafael Cabral.
With Aaron Ramsey and Jack Wilshere on the bench, Mathieu Flamini came into the side and was instrumental in wrestling control in midfield and Rafael Benitez's men committed several fouls as their frustration grew.
The hosts had two decent opportunities to strike before half-time, though, as the energetic Dries Mertens played in Christian Maggio down the right channel. He could only lift his shot over the bar, however, as Szczesny came out to close him down.
The Arsenal goalkeeper then almost gifted Napoli a goal as he kicked Laurent Koscielny's backpass straight at Higuain, but the striker - who was a target for the Gunners in the summer - headed wide from an angle.
Napoli improved around the hour mark and almost went ahead when Raul Albiol's pass found left-back Pablo Armero but his tame shot was easily saved.
Benitez's men then wasted three further chances before Higuain finally made the breakthrough, turning and finding the bottom corner after collecting Callejon's pass outside the box.
With Borussia Dortmund drawing with Marseille at this point, the Stadio San Paolo erupted as Napoli moved into second spot in the group.
The home crowd cheered further three minutes later when Arteta received a second yellow card for a foul on Callejon, having already been booked in the first half.
That set up a nervous finale, and when Callejon scored it looked like there may be a chance for Napoli to knock Arsenal out, but there was only enough time left for the Gunners to take the re-start.
Dortmund's late goal consigns Benitez, who was Chelsea's interim manager at this time last season, to the Europa League for a second consecutive campaign.
- 21FernándezBooked at 84mins
- 14MertensBooked at 36mins
- 20DzemailiBooked at 41mins
- 19PandevSubstituted forInsigneat 57'minutes
- 8ArtetaBooked at 76mins
- 7RosickySubstituted forMonrealat 74'minutes
- 12GiroudBooked at 67mins
- 19CazorlaSubstituted forRamseyat 68'minutesBooked at 84mins
- Viktor Kassai
- Shots on Target
Second Half ends, Napoli 2, Arsenal 0.
Goal! Napoli 2, Arsenal 0. José Callejón (Napoli) right footed shot from the centre of the box to the bottom right corner. Assisted by Lorenzo Insigne with a through ball.
Attempt missed. Olivier Giroud (Arsenal) left footed shot from the centre of the box misses to the right. Assisted by Nacho Monreal with a cross.
Nacho Monreal (Arsenal) wins a free kick on the left wing.
Foul by Christian Maggio (Napoli).
Federico Fernández (Napoli) is shown the yellow card.
Aaron Ramsey (Arsenal) is shown the yellow card.
Offside, Napoli. Pablo Armero tries a through ball, but José Callejón is caught offside.
Foul by Olivier Giroud (Arsenal).
Raúl Albiol (Napoli) wins a free kick in the defensive half.
Aaron Ramsey (Arsenal) wins a free kick in the defensive half.
Dangerous play by Valon Behrami (Napoli).
Second yellow card to Mikel Arteta (Arsenal) for a bad foul.
Foul by Mikel Arteta (Arsenal).
José Callejón (Napoli) wins a free kick in the defensive half.
Substitution, Arsenal. Nacho Monreal replaces Tomas Rosicky.
Goal! Napoli 1, Arsenal 0. Gonzalo Higuaín (Napoli) left footed shot from the centre of the box to the bottom right corner. Assisted by José Callejón.
Foul by Carl Jenkinson (Arsenal).
Lorenzo Insigne (Napoli) wins a free kick on the left wing.