Nabil Ghilas was once more the hero as Porto secured a 2-2 draw at Napoli to reach the quarter-finals of the UEFA Europa League.
Leading 1-0 from the first leg thanks to Jackson Martinez's goal, Napoli levelled Thursday's tie through Goran Pandev's first-half strike at Stadio San Paolo.
The hosts piled on the pressure and spurned several chances in search of a crucial second goal.
And Napoli were harshly punished by substitute Ghilas on the break in the 69th minute, with the Algeria striker having also scored the equaliser in a 3-3 draw against Eintracht Frankfurt that sent Porto into the last 16 on away goals.
Ricardo Quaresma then put the tie seemingly beyond doubt with a superb strike 14 minutes from time before Duvan Zapata netted a late equaliser to level on the night, but Porto progressed with a 3-2 aggregate victory that boosts interim coach Luis Castro's hopes of getting the role on a permanent basis.
Napoli head coach Rafael Benitez had described the tie as "like a final" in the build-up and his side rose to the occasion in the first half to lead thanks to Pandev's calm finish.
But Porto's quick turnaround in the second half ended the Spaniard's hopes of winning the Europa League for the second straight year, following his triumph with Chelsea in the 2013 final.
Napoli began the match at a quick tempo and created two chances in the opening 10 minutes. Dries Mertens was first denied by Fernando's fine last-ditch tackle, before Lorenzo Insigne stung the palms of Porto goalkeeper Fabiano.
Benitez's men continued to control play and full-back Henrique flashed a half-volley across the face of goal after quarter of an hour.
And Napoli's early pressure paid dividends in the 21st minute, as Benitez's men deservedly levelled the tie on aggregate.
Gonzalo Higuain held the ball up on the edge of the area before his neat throughball found Pandev's clever run into the box and the forward provided a delicate finish past Fabiano.
Porto sought an equaliser, but it took 33 minutes for the visitors to threaten Pepe Reina's goal, when Quaresma's corner was headed wide at the back post by Martinez.
The lively Insigne then threatened to put Napoli ahead as he cut inside Danilo from the left and flashed a shot wide of the near post.
The diminutive forward went close again early in the second half, but his downward header at the back post was expertly saved by Fabiano at point-blank range.
Porto had offered little going forward, yet nearly snatched a goal in the 57th minute when Quaresma's free-kick was glanced narrowly wide by Carlos Eduardo.
Napoli then had two good chances to take the lead in the tie through Higuain and Mertens before their wastefulness was duly punished.
First, Ghilas – who had replaced Silvestre Varela - sprung the offside trap to receive Fernando's superb throughball and keep his composure to slot firmly past Reina.
And, with just under 15 minutes remaining, Quaresma weaved his way through the defence before unleashing into the roof of Reina's goal.
Napoli clinched a draw on the night in injury time when Jose Callejon's ball across the six-yard box was tapped home by Zapata, but it was too little, too late for the hosts.
|Coach: Rafael Benítez|
for G. Pandev 68'
for G. Higuaín 79'
for D. Mertens 83'
|Hughes confirms Stoke interest in Manchester United defender Jones|
|Bentaleb completes Schalke switch|
|Klopp: Balotelli decision not imminent|
|Manquillo makes Sunderland move|
|Barca complete Cillessen signing|
|Hummels surprised by criticism from Dortmund fans|
|Blatter will accept CAS ruling|
|I do not want Sturridge as a wide player, insists Klopp|
|Schalke close in on Bentaleb and Stambouli|
|Wanted man Sukur denounces coup|
|´Everyone knows my best position´ - Sturridge unhappy at wide role|
|Villa says Alcacer ´knows what to do´ amid Barcelona links|
|Solo ´saddened´ by United States axing|
|Drinkwater signs new Leicester deal|
|Spanish clubs dominate as history beckons for Ancelotti - the Champions League in numbers|
|Lopes sets sights on Lille silverware and Portugal breakthrough|
|´A scholar and a monster´ - Surgeon hails ´unique´ Ronaldo|
|MLS Review: Altidore scores as Toronto move top in east, Galaxy rally|
|CONCACAF Champions League Review: Tigres win, Dallas held|
|Victory lure Rojas back to Melbourne|
|Chaplow suspended two games for verbal abuse, denies homophobia|
|Eduardo farewells Dinamo Zagreb amid Chelsea speculation|
|Zidane shoud give James more respect - Asprilla|
|Solo suspended from USA women´s team for six months|
|Guardiola understands fans unhappiness over Hart situation|
|Burnley and Middlesbrough sent packing from League Cup|
|Coleman baffled by Ramsey´s treatment at Arsenal|
|Six of the best for Gladbach as Rostov rout Ajax|
|Leicester face Chelsea, Northampton host United in League Cup third round|
|Cillessen set to fly out to Barca to complete move|
|Guardiola hails ´legend´ Hart as Bravo wait in the wings|
|Emotional Hart edges towards City exit|
|Manchester City 1 Steaua Bucharest 0 (6-0 agg): City ease through amid Hart-felt goodbyes|
|Ronaldo working hard for Madrid return|
|Pique warns of European Super League dangers|
|AFC Champions League: Damjanovic inspires Seoul, Wanderley puts Al Nasr in charge|
|Rauball re-elected as German league president|
|Cillessen returns for Ajax despite Barcelona talk|
|Surgery for Pereira after De Rossi horror challenge|
|Hart set for City farewell against Steaua|
|CAF Champions League Review: Wydad draw at ZESCO to earn top spot|
|Retiring Keane in Republic of Ireland squad for final time|
|Sion in talks to sign Liverpool outcast Balotelli, claims club president|
|Athletic´s Laporte not distracted by Barcelona visit|
|Keane announces international retirement|
|Clarke named FA chairman|
|Neuer: Schweinsteiger remains one of world´s best|
|Bielsa would call me before coming to Marseille - Passi|
|Watford bring in Janmaat from Newcastle|
|FIFA opens adjudicatory proceedings against disgraced African football officials|
|European Super League could cause ´war´|
|Sampdoria pounce for Praet|
|Zaza agent confirms Napoli talks but rules out loan move|
|No Grigg in Northern Ireland´s World Cup qualifying squad|
|Cahill reflects on ´amazing´ Melbourne City debut|
|Europa League must take priority, Recoba tells Inter|
|Saint-Etienne swoop for Saivet and Veretout|
|Ronaldo: Pepe was the best player at the Euros, not Griezmann|
|Schweinsteiger: Manchester United my last club in Europe|
|Dante sees Nice as a positive move|
|Pique: Barcelona by far the best in Spain|
|Pique backs Stones for success under Pep|
|Coleman dismisses Premier League talk|
|Spurs want Calhanoglu, claims agent|
|Bony an ´option´ for Bilic|
|Leverkusen cannot challenge Bayern, says Ballack|
|Pallotta blasts ´disgusting´ referee after Roma defeat|
|Badstuber taking his time after injury nightmare|
|Conte: Terry return between him and Allardyce|
|We beat Bayern to Dembele - Watzke|
|Wanderers bring back Bulut|
|Moyes rules out Kone exit|
|CONCACAF Champions League Review: Whitecaps, Pachuca win big|
|Bale: I´ll never forget this year|
|Griezmann: I deserve Best Player in Europe Award|
|No surgery for Ayew as West Ham target December return|
|Villarreal did all they could to make it through - Escriba|
|Spalletti rues lack of Roma discipline|
|Conte: Chelsea must learn to kill matches|
|Watford and West Brom crash out of League Cup|
|My longest 90 minutes as a coach - Rodgers|
|AFC Champions League: Goalless draws leave quarter-finals on a knife edge|
|Klopp hopeful over Can injury|
|Champions League play-offs: Nine-man Roma crash out as Monaco edge Villarreal|
|Henderson hails ´outstanding´ Mane after Burton thrashing|
|Chelsea 3 Bristol Rovers 2: Conte´s side survive scare thanks to Batshuayi double|
|Hapoel Be´er Sheva 2 Celtic 0 (4-5 agg): Visitors survive Israeli scare|
|Burton Albion 0 Liverpool 5: Sturridge at the double in Reds rout|
|Leverkusen sign Austria star Dragovic|
|Sakho in the clear as WADA opt against appeal|
|Enyimba 3 Mamelodi Sundowns 1: Udoh brace secures CAF Champions League win|
|Pulisic and Ramos on target as Dortmund wrap up Bundesliga preparations|
|Calleri hoping for Tevez advice|
|Defour hoping for Belgium recall|
|Alaba warns against complacency as Bayern begin Bundesliga defence|
|Bravo arrives in Manchester ahead of City move|
|Dyche backs Gray after striker´s apology for homophobic tweets|
|Gray charged by FA over homophobic tweets|
|Pique: Olympic gold proves Neymar is one of world´s best|
|Marin makes Olympiacos move|
|Zidane arrival the catalyst for one of my best seasons - Ronaldo|
|Moyes ´worried´ about Mannone elbow injury|
|Sidibe rejected Arsenal over playing-time fears|
|Guardiola: Toure could feature against Steaua|
|Hernandez out for two weeks after falling down stairs|
|Bravo nearing City move, admits Guardiola|
|Ballack impressed by Dortmund signings but still backing Bayern|
|Lucescu questions De Boer tactics|
|Milan reject Chelsea bid for Romagnoli|
|Dortmund know how to treat Gotze - Ballack|
|Shevchenko: Bacca must improve consistency|
|´If you heed 100 idiots you will go crazy´ - Bauza on Messi return|
|Valdano relieved over Messi U-turn|
|Nordfeldt in line for loan move after signing fresh Swans deal|
|Dante joins Nice from Wolfsburg|
|De Boer expects fierce fight for Barca number-one spot|
|Newell´s confident over Messi return|
|Stoke confirm Jones interest|
|MLS ´attractive´ to Rooney - Timbers owner|
|Burke re-signs with West Ham|
|Sassuolo rejected Balotelli - CEO|
|Valencia coach Ayestaran rules out Mustafi sale|
|Allardyce plans Guardiola talks over Hart|
|Cahill warns rivals over City attack|
|Allardyce open to Terry England return|
|Drogba dismisses Villa rumours|
|Tuchel pleased despite Dortmund wastefulness|