Joao Pedro celebrates with Chelsea's French defender Wesley Fofana and Chelsea's Argentinian midfielder Enzo Fernandez after scoring his team's third goal against NapoliGetty Images
At a glance
Enzo Fernandez penalty puts Chelsea ahead
Brilliant individual Antonio Vergara goal levels it up
Rasmus Hojlund puts Napoli ahead just before half-time
Two second half Joao Pedro goals secure a dramatic win
PLAYER RATER
Nizaar Kinsella
Football reporter at Stadio Diego Armando Maradona
Two second-half goals from Joao Pedro saw Chelsea come from behind against Napoli to finish in the top eight while knocking Napoli out of the Champions League.
Enzo Fernandez had opened the scoring with a penalty, but Antonio Vergara and Rasmus Hojlund put Napoli ahead just before half-time.
However, Cole Palmer was brought on at the interval and set up both of Joao Pedro's second half goals.
It was heartbreak for Napoli and ecstasy for Chelsea, who secured a place in the last 16.
Chelsea began strongly when captain Reece James struck a free-kick against the hand of Juan Jesus to win a penalty in the 18th minute, which Enzo Fernandez drilled powerfully into the bottom corner.
Going a goal down sparked urgency from Antonio Conte's Napoli side, as defenders Mathias Olivera and Giovanni di Lorenzo had efforts blocked and saved before equalising.
The home side's opener came in the form of a remarkable first Napoli goal for local playmaker Antonio Vergara, as he escaped Moises Caicedo in midfield, turned Wesley Fofana and placed his shot past Chelsea goalkeeper Robert Sanchez.
Vergara's 33rd-minute strike was followed 10 minutes later by Rasmus Hojlund's goal, the on-loan Manchester United striker beating Fofana to meet Olivera's low cross and guide a first-time finish into the corner.
At half-time, Palmer, on the bench having recovered from a thigh problem, came on to replace Pedro Neto.
Palmer made an impact by feeding Joao Pedro, who shrugged off a challenge and smashed in an equaliser from the edge of the box in the 61st minute.
The Brazilian striker was then found by Palmer while counter-attacking and slotted an 82nd-minute winner under the legs of Meret.
Substitute Romelu Lukaku had a chance to equalise in added time against his former club but his shot was saved as it was struck directly at goalkeeper Sanchez.
The Italian champions are out of Europe, but Chelsea avoid a two‑legged play-off in February and qualify for the last 16 at the first time of asking.
The Player Rater cannot be displayed in your browser. Please enable JavaScript or try another browser.
Player of the match
João Pedro
8.86
Napoli
Chelsea
8S. McTominay
6.35
19R. Højlund
5.92
26A. Vergara
5.20
37L. Spinazzola
5.15
1A. Meret
5.13
17M. Olivera
4.86
22G. Di Lorenzo
4.72
68S. Lobotka
4.70
5Juan Jesus
4.59
3Miguel Gutiérrez
4.53
20E. Elmas
4.42
4A. Buongiorno
4.35
31S. Beukema
4.14
9R. Lukaku
3.87
Back to team tabs
20João Pedro
8.86
1Robert Sánchez
7.79
10C. Palmer
7.78
8E. Fernández
7.42
24R. James
7.38
23T. Chalobah
7.14
25M. Caicedo
7.02
3Marc Cucurella
6.89
41Estêvão
6.72
17Andrey Santos
6.56
29W. Fofana
6.30
49A. Garnacho
6.30
27M. Gusto
6.15
7Pedro Neto
6.11
5B. Badiashile
5.85
11J. Gittens
5.81
Back to team tabs
After the opportunity to rate players has closed, the score displayed represents the average from all the submissions by BBC Sport users.
Related topics
Napoli
European Football
Chelsea
UEFA Champions League
Football
Have your say on Chelsea's performance