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.
|Lampard welcomes ´perfect´ NYCFC challenge|
|Shamrock Rovers 3 Progres Niederkorn 0: Waters at the double|
|Gerrard keen to emulate ´hero´ Beckham at Galaxy|
|UEFA Champions League Review: Red Imps make history, TNS breeze through|
|Ameobi extends Newcastle deal and heads for Cardiff|
|U.S. women celebrate World Cup victory with LA rally|
|Atletico agree Vietto deal|
|Silva appointed Olympiacos head coach|
|Presidential candidates unsure of Turan´s Barca switch|
|Toure keen to bounce back from ´disappointing´ campaign|
|El Salvador v Canada: Floro targets Gold Cup learning curve|
|Juve complete Zaza swoop|
|Costa Rica v Jamaica: Borges confident Wanchope´s men are ready|
|Marseille snare Sarr|
|Italy coach Conte to stand trial in match-fixing case|
|Castan keen to repay Roma´s faith|
|Rami thrilled to reunite with ´best coach´ Emery at Sevilla|
|Lusitans v West Ham: Tomkins seeks to silence minnows|
|Kagawa shines as Dortmund hit six in Japan|
|Alonso tips Gerrard for Galaxy glory|
|Firmino seeks self-improvement with Liverpool|
|Buffon bids farewell to Pirlo|
|Sterling named Europe´s ´most valuable´ young player|
|Casillas´ agent reveals Porto offer|
|Southampton bring in Martina|
|Dundee United accept Celtic´s Ciftci bid|
|McArthur pens new Palace deal|
|Bartomeu rules out Barca move for Pogba this year|
|Spurs have to be better now - Bentaleb|
|Milner expects central role|
|Micronesia thrashed again, this time 46-0|
|Marchisio: I cannot be Pirlo´s heir|
|Inter aiming for Champions League return - Icardi|
|UEFA Europa League Preview: Brondby and Slovan to protect handsome leads|
|Bentaleb pens new long-term deal at Tottenham|
|Barca agree Turan deal|
|FIFA bans Mayne-Nicholls|
|United States v Honduras: Klinsmann demands improvement ahead of Gold Cup opener|
|CONCACAF institutes extensive reforms in wake of FIFA corruption scandal|
|Mauri completes Milan move|
|City sign Turkey striker|
|Women´s World Cup final draws huge US TV ratings|
|My first Chelsea team better than current crop - Drogba|
|Bertrand set for lay-off after knee surgery|
|New five-year Juve deal for Marchisio|
|Allegri extends Juve contract|
|Koeman reiterates Alderweireld interest|
|Valencia bag Bakkali|
|New York City FC complete Pirlo capture|
|Panama v Haiti: Collat ready to challenge the best of CONCACAF|
|UEFA Champions League Preview: Harrison eyes TNS progression|
|FIFA sanctions Yemen for fielding ineligible player|
|Toulouse rubbish Ben Yedder exit reports|
|Mourinho ´knows what he´s doing´ with Falcao signing|
|Watford shell out club-record fee for Capoue|
|Braafheid signs Lazio extension|
|Nani finalises Fenerbahce move|
|Liverpool confirm O´Driscoll appointment|
|Liverpool have to start better - Lucas|
|USA simply too good - Sasaki|
|Portland Timbers 1 San Jose Earthquakes 0: Jewsbury wins it in stoppage time|
|No move yet for Van Persie|
|Lloyd wins Golden Ball, Silver Boot awards|
|Mascherano: I never grabbed Banega|
|Dunga requested Brazil not appeal Neymar´s suspension|
|United States 5 Japan 2: Lloyd stars with hat-trick|
|Fiorentina deny Inter criticism|
|Nani relishing Fenerbahce opportunity|