Gonzalo Higuain and Gokhan Inler denied Swansea City a place in the last 16 of the UEFA Europa League as Napoli progressed 3-1 on Thursday.
With Rafael Benitez's side strongly tipped as one of the tournament's favourites, many expected the Serie A outfit to progress following a 0-0 draw in Wales last week in the first leg of the last-32 tie.
But for almost 50 minutes at the Stadio San Paolo it looked as if Jonathan de Guzman's goal would see Swansea through via the away goals rule after Lorenzo Insigne had earlier put Napoli ahead.
Insigne latched onto Higuain's headed flick in the 17th minute and lobbed a deft finish over the advancing Michel Vorm, but Swansea responded strongly and were level 13 minutes later.
A glorious team move eventually found De Guzman in space and the Dutchman fired a left-footed strike beyond Pepe Reina to put his side in the ascendancy.
The visitors looked assured for much of the game, but Swansea's hopes were dashed 12 minutes from time when an unfortunate ricochet off Ben Davies fell kindly for Higuain, who smashed the ball beyond a helpless Vorm.
Inler rubbed salt into the wound in the final minute of stoppage time, coolly slotting beyond Vorm as Swansea left themselves exposed in chasing a second equaliser.
Victory means Benitez, who won the tournament last year while in charge of Chelsea, remains on course to defend his title.
Marvin Emnes, one of three Swansea changes to the starting XI from the home leg, had the first sight of goal in the 11th minute, but, after being played in by Pablo Hernandez, the Dutchman saw his chipped effort over Reina cleared from just in front of the goalline by Raul Albiol.
The hosts ought to have broken the deadlock themselves four minutes later, but Higuain blazed over from 10 yards after linking up with Goran Pandev.
Swansea failed to heed the warning in the 17th minute, Insigne springing the offside trap before lofting his finish over Vorm and into the net.
The Swansea defence was in disarray, Higuain flashing an effort a yard wide with the visitors apparently still reeling from falling behind.
The Premier League side recovered their composure, however, and were level on the half-hour mark.
A slick passing move resulted in the ball being fed into Wilfried Bony and his clever flick was picked up by De Guzman, who fired left footed beyond Reina to provoke jeers from the home crowd.
The goal gave Swansea added confidence and they enjoyed long spells of possession, Bony cutting inside Henrique before testing Reina as the half drew to a close.
Midway through the second half, Insigne broke through only to see his effort blocked by Chico Flores, before Bony wasted a glorious chance when he headed Hernandez's cross straight into the arms of Reina.
Swansea hearts were broken on 78 minutes when the ball bounced off both Flores and Davies and landed perfectly for Higuain, who made no mistake from 10 yards.
With almost the last kick of the game and with Swansea completely exposed, substitute Marek Hamsik fed Inler, who beat Vorm to seal the win and set up a tie with Porto in the next round.
|Del Bosque frustrated by friendly defeat|
|Bradford City 0 Chesterfield 1: Harrison strike moves visitors into play-off places|
|Portugal 0 Cape Verde 2: Hosts suffer shock friendly defeat|
|Townsend takes swipe at TV pundit Merson|
|Plane issue grounds England squad|
|Israel 0 Belgium 1: Fellaini nets again as Kompany sees red|
|N´Koulou returns to full Marseille training|
|Netherlands 2 Spain 0: Hosts ease pressure on Hiddink|
|Italy 1 England 1: Townsend leveller rescues draw|
|Ghana 1 Mali 1: Sako spot-kick denies Black Stars|
|Luxembourg 1 Turkey 2: Calhanoglu stakes claim with late winner|
|Ghana 1-1 Mali: Sako spot-kick denies Black Stars|
|Italy 1-1 England: Townsend rocket earns draw for Three Lions|
|Rummenigge marvels at ´genius´ Guardiola|
|Switzerland 1 United States 1: Stocker seals draw after Altidore red|
|Young players should not need a break, says Dyche|
|Tottenham acquire final piece of land for new stadium|
|Portugal 0-2 Cape Verde Islands: African minnows claim historic victory|
|Netherlands 2-0 Spain: Rejuvenated Dutch ease pressure on Hiddink|
|Switzerland 1-1 USA: Altidore sent off in friendly draw|
|Palestinian FA speaks out against Israel-Belgium venue selection|
|Valdes enjoying football again after injury nightmare|
|Emotional Cha retires ´a happy man´|
|Dortmund´s Kirch suffers knee injury|
|Newcastle need to be mentally prepared, says Williamson|
|Leno ´knows nothing´ of Real interest|
|Tunisia to compete in AFCON after apology|
|Van der Vaart not allowing future to affect his game|
|Vlaar: Sherwood has reduced stress levels|
|Roma hit by Gervinho hamstring blow|
|Jones optimistic over Everton´s strike partnership|
|Milik sustains knee ligament damage|
|Georgia fear stadium closure for Scotland clash|
|Zamparini: Juventus and Arsenal have bid for Dybala|
|South Korea 1 New Zealand 0: Lee nets late winner|
|Japan 5 Uzbekistan 1: Five-star hosts maintain Halilhodzic start|
|European clubs benefit from UEFA agreement|
|Vassell: Sky is the limit for Kane|
|Manchester United move would be an ´honour´ for Coentrao|
|Insigne out to bolster Napoli season after lay-off|
|Rooney warns Kane over ´clever´ Italy defenders|
|Rangers results reveal £500,000 Newcastle clause|
|Southampton announce £33.4m profit|
|´I am a very flexible man´ - Van Gaal|
|A-League Preview: Top spot up for grabs|
|Portugal - Cape Verde Preview: Andre and Oliveira eager for international bows|
|Puerto Rico 0 Canada 3: Floro´s men rout hosts|
|Xavi denies Al Sadd link|
|Fernando´s life ban upheld by CAS|
|Argentina - Ecuador Preview: Messi remains doubtful for friendly|
|Falcao equals Colombia´s all-time scoring record|
|Macedonia trip good learning curve - Postecoglou|
|Macedonia 0 Australia 0: Stalemate in Skopje|
|Del Bosque not out for Netherlands revenge|
|Burton Albion 1 Stevenage 1: Both teams score at wrong end in draw|
|Pekerman: I have no say on Falcao´s Manchester United future|
|Buffon has studied England new boy Kane|
|Conte urges patience from Italy fans|
|Johnson tasked with keeping Cheltenham up|
|Rooney not keen on Serie A switch|
|Kane to make first England start|
|Colombia 3 Kuwait 1: Spot-on Falcao equals Iguaran record|
|Goal-shy Barkley eyes striker´s role|
|UEFA opens disciplinary proceedings against Montenegro and Russia|
|Draxler and Choupo-Moting back in training|
|Ghana v Mali: Last chance to impress before Giresse return|
|Wilson: Gibraltar getting stronger|
|Mata confident of Spain future|
|Armenia coach Challandes resigns|
|Hiddink rubbishes talk of Dutch negativity|
|Portugal v Cape Verde: Santos set to rotate|
|Loren hails Moyes for Sociedad surge|
|Cruyff brands Netherlands ´a disgrace´|
|Kick It Out backs Barnes over race comments|
|Argentina v Ecuador: Messi remains doubtful for friendly|
|Coates backs Hughes ambition at Stoke|
|Atletico able to call on Saul again|
|Italy v England Preview: Kane set to start after dream debut|
|Zidane would accept Real job|
|Hernandez frustrated by lack of Real opportunities|
|Spartak donate money to 102-year-old fan after robbery|
|Clasie pulls out of Netherlands squad|
|Italy´s Bertolacci out of England friendly|
|Newcastle post record profit as Ashley debt stays the same|
|Al Sadd: We want Xavi to bring tiki-taka|
|Lacazette expected frosty Saint-Etienne reception|
|Barnes: I can´t get back into management because I´m black|
|Rooney praises England aggression|
|Southgate tips Kane for return to U21s|
|Mexico v Paraguay: Goals in order for Copa America aspirants|
|Netherlands - Spain Preview: Wijnaldum rallies behind under-fire Hiddink|
|Peru v Venezuela: Sanvicente wants Venezuelan response|
|Carvalho confident of playing Juventus|
|Neymar demands protection after Medel stamp|
|MLS Review: RSL, Fire secure breakthrough wins|
|Firmino firmly on radar - Dunga|