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'
|Klopp: We can´t treat Sturridge normally|
|Neymar will re-sign with Barca, promises father|
|Berisha extends Victory stay|
|Arnold backs fans amid A-League boycott|
|Perez happy at Newcastle|
|Klopp can´t forget ´f***ing´ Palace loss|
|Mihajlovic: Milan didn´t expect extra time|
|Carvalhal hopes cup run spurs Wednesday to league success|
|Coppa Italia Review: AC Milan survive scare, Torino thrash Cesena|
|Hughes happy with rotation policy after League Cup win|
|Football League Review: Burton win to go top of League One|
|Atletico still uncomfortable - Simeone|
|AC Milan 3 Crotone 1 (aet): Bonaventura and Niang extra-time strikes send hosts through|
|Leganes 2 Granada 1: Segunda Division side threaten upset|
|Ligue 1 Review: Leaders Paris Saint-Germain held on the road|
|City thrashing cruel on Hull - Bruce|
|City thrashing cruel on Hull - Bruce|
|Pellegrini: Silva brings style back to City|
|Reaching last four is ´terrific´ - Martinez|
|Lukaku urges Everton to push on|
|FIFA sponsors call for ´independent oversight´ of reforms|
|Stoke City 2 Sheffield Wednesday 0: Potters end visitors´ League Cup run|
|Manchester City 4 Hull City 1: De Bruyne double books semi-final spot|
|Middlesbrough 0 Everton 2: Deulofeu and Lukaku on target in routine win|
|Reus Deportiu 1 Atletico Madrid 2: Third-tier hosts make life difficult for Atleti|
|Amnesty International critical of Qatar, FIFA|
|Angers 0 Paris Saint-Germain 0: Cavani fails to make his mark|
|Ramos: Madrid fight for Undecima every day|
|Silver screen awaits for Vardy?|
|Del Bosque noncommittal on Aduritz form|
|Dybala: Juventus´ slow start normal|
|Koeman confident Southampton can match Liverpool|
|Venezuela stars issue quit threat to FA|
|Moreno agent opens door to Real Madrid offer|
|Herrera: I´m very happy at Manchester United|
|Lars Bender undergoes ankle surgery|
|Delneri takes over at Verona|
|Bellerin: I did not know how to defend until I joined Arsenal|
|Panathinaikos hit with three-point penalty after violence|
|Martial and Depay unhappy under ´selfish´ Van Gaal - Parker|
|Injured Carvajal set to miss Cadiz tie|
|Klopp vows to play strongest Liverpool team against Southampton|
|Ronaldo rested for Copa clash|
|Sanchis implies Neymar provoked Isco kick|
|Benitez: I have no problem with James|
|Luis Enrique plays down Suarez Ballon d´Or omission|
|Sergio Ramos is right - football is cyclical, says Luis Enrique|
|Klopp defends Mignolet amid Ter Stegen rumours|
|Boksic backs Mandzukic to get 20 goals for Juve|
|Neymar hails ´great friends´ Messi and Suarez|
|Chelsea submit planning application for new stadium|
|French sports people need to be exemplary - Valls|
|Moyes: Valencia job has come too soon for Neville|
|Napoli loss ´doesn´t change anything´ for Mancini|
|Ronaldo ´uncomfortable´ as a number nine, claims Madrid great Sanchez|
|Manchester City receive $400m Chinese investment|
|Messi: Ronaldo deserves Ballon d´Or nomination, but I´d prefer Suarez|
|Moyes open to another European gig|
|Everton welcome cup pressure - Martinez|
|Casillas open to MLS move|
|Hughes: Butland going nowhere|
|Milner eyes trophies at ´exciting´ Liverpool|
|Napoli became anxious - Sarri|
|Inter did not deserve to lose - Mancini|
|Messi beats Ronaldo to top prize at La Liga awards|
|Bolton Wanderers 1 Brentford 1: Smith watches on as strugglers snatch point|
|Napoli 2 Inter 1: Higuain at the double as hosts go top|
|Lewandowski: Less pressure on me than Aubameyang|
|Defoe, Larsson to miss Arsenal match|
|Sassuolo 1 Fiorentina 1: Di Francesco´s side extend unbeaten home run|
|Barcelona took ´a step forward´ without Messi - Busquets|
|Unfair to blame Garcia for Roma form - Zanetti|
|Southampton v Liverpool: Returning stars have Ibe in buoyant mood|
|Lewandowski´s five-goal haul recognised for four records|
|Barcelona v Villanovense: Holders get second crack at minnows|
|Verona sack Mandorlini|
|Valencia confirm Nuno departure|
|Premier League clubs reveal agent fees|
|Stoke will not underestimate Sheffield Wednesday – Hughes|
|Robben wants Guardiola to stay at Bayern|
|Aguero allays foot injury concerns|
|Cadiz v Real Madrid: Pepe calls for hard work in Andalusia|
|Bolton confirm players have not been paid for November|
|Neville takes Valencia training following Nuno resignation|
|Mihajlovic targets Coppa Italia triumph|
|Garde confident Villa will survive|
|Everton to make late call on Barry and McCarthy|
|Davids: Messi is an anomaly but Ronaldo just an athlete|
|Simeone open to January signings following Tiago injury|
|Messi leads nominees for Puskas Award|
|Hummels defends himself after media criticism|
|Messi, Ronaldo and Neymar nominated for Ballon d´Or|
|Luis Enrique, Guardiola and Sampaoli up for World Coach of the Year|
|Chelsea about the team, not just Costa - Ivanovic|
|Kuyt open to Feyenoord extension|
|Barcelona lodge complaint over ex-Madrid duo´s Neymar comments|
|Davies wants Manchester City quarter-final to get crazy|
|Ribery ordeal is over – Rummenigge|
|Smalling: Vardy run opens door to non-League hopefuls|
|Bender relieved to end Dortmund losing streak|
|Mata: Manchester United have six finals in December|
|Vardy reveals painful road to Premier League record|
|Pardew urges Newcastle to back McClaren|
|Russian clubs banned from signing Turkish players|
|Klopp expects Coutinho to face Southampton|
|Valverde: Let´s hope Barcelona don´t sign Aduriz|
|De Bruyne relishing link-up with Silva|
|´Crazy´ Munich could convince Guardiola to stay|
|Defiant Garcia refuses to resign despite Roma slump|
|Monk confident Swansea can turn the corner|
|Bellerin: Arsenal can cope without Sanchez|
|McClaren: Newcastle not panicking|
|Klopp delighted with Sturridge, Henderson returns|
|I wouldn´t swap Lukaku for Vardy - Martinez|
|MLS Review: Timbers, Crew to meet in final|
|Nuno saddened by Valencia departure|
|Morata will become a key player - Allegri|