Napoli crashed out of the Europa League after failing to overcome a two-goal first-leg deficit against Granada.
Piotr Zielinski found the back of the net with just three minutes gone to provide the hosts with the perfect start at the Stadio Diego Armando Maradona.
But Angel Montoro restored surprise package Granada’s two-goal advantage midway through the opening half of Thursday’s last-32 second leg.
Fabian Ruiz put Napoli back in front on the evening shortly before the hour mark, but the Spanish side held their nerve to take a 3-2 aggregate win and progress to the last 16.
AC Milan are also through to the next stage after winning their tie against Red Star Belgrade on away goals.
The two sides drew 2-2 in Serbia last week before Franck Kessie’s ninth-minute penalty handed the advantage to the Italian side in the return rubber at the San Siro.
El Fardou Ben Nabouhane hauled Red Star level, but their quest for a winner was scuppered when Marko Gobeljic was sent off with 20 minutes remaining.