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'
|Messi and Ronaldo out of this world in UEFA Champions League space race|
|Bring on Bilbao - Lopetegui|
|J.League Preview: Petrovic positive despite Urawa form|
|Argentine Primera Division Review: Calleri inspires Boca|
|Guardiola: Garcia´s Roma reign ´wonderful´|
|Chilean Primera Division Review: Colo Colo claim key win|
|Mata had ´no relationship´ with Mourinho|
|Paraguayan Division Profesional Review: Libertad gain ground, Cerro Porteno held|
|Lovren demands better display|
|´Arrogant´ Van Gaal insists United can catch Chelsea|
|Sociedad loss a ´hammer blow´ - Arrasate|
|Genoa deserved a penalty - Gasperini|
|Passion kept me at Roma - De Rossi|
|Irvine ´bitterly disappointed´, questions Fellaini´s goal|
|Taarabt hits back at Redknapp claims|
|Genoa 1 Empoli 1: Tonelli hands visitors a point|
|Van Gaal blames United errors for draw|
|Real Sociedad 1 Getafe 2: Yoda brace stuns San Sebastian|
|West Brom 2 Manchester United 2: Blind rescues point for Van Gaal´s men|
|Russian Premier League Review: CSKA, Rubin claim easy victories|
|De Boer calls for confident Ajax|
|Robben hails Roma ahead of Champions League showdown|
|Turkish Super Lig Review: Besiktas win again, Sneijder settles derby|
|Monaco v Benfica: Jardim to face off with former rivals|
|Cordoba turn to Djukic|
|Anderlecht v Arsenal: Wenger on the defensive after domestic struggles|
|Ferrer fired by Cordoba|
|Olympiacos v Juventus: Allegri´s men face stern Greek test|
|PSG will not hide behind injuries, says Blanc|
|Podolski rubbishes Spurs rumours|
|Galatasaray among teams fined by UEFA|
|Stoke loan out Butland and Wilkinson|
|Atletico Madrid v Malmo: Turan warns Spanish champions|
|Di Matteo: Sporting clashes crucial|
|Donbass Arena heavily damaged by shelling|
|Toure getting back to his best - Pellegrini|
|Liverpool v Real Madrid: Rodgers marvels at Real quality|
|Starke injury adds to Bayern´s goalkeeper troubles|
|Bayer Leverkusen v Zenit: Bellarabi wants consistent focus|
|Birmingham part company with Clark|
|Roma not afraid of Bayern, insists Garcia|
|Ludogorets v Basel: Sousa after more of the same|
|Galatasaray v Borussia Dortmund: Reus calls for unity|
|Luis Enrique coy on Messi sub snub|
|Indian Super League Preview: Chennaiyin with chance to go top|
|Costa to miss Maribor clash|
|League Two Preview: Wilcox promises York improvement, Tranmere seek to end losing streak|
|League One Preview: Grayson excited by Preston form|
|Championship Preview: Birmingham begin life without Clark, Fulham out to continue revival|
|Ronaldo will retire at Real insists Ancelotti|
|Musa: City are weak at the back|
|El Shaarawy: I could have played better|
|Allardyce targets City scalp|
|Bale suffers hip injury|
|Atleti cannot rely on set-pieces, says Suarez|
|Martinez: Baines at another level|
|Juan: Inter must maintain hunger|
|Van Gaal: Three month comment was stupid|
|Bielsa proud to equal Marseille record|
|Redknapp: No one could do better than me|
|Manolas: I rejected Juve and Arsenal for Roma|
|Winning without Costa delights Mourinho|
|Mannone vows to repay fans|
|Balotelli ´doing his best´, insists Rodgers|
|Marseille feeling streak fatigue|
|Fournier hails substitutes´ influence|
|Copa Sudamericana Preview: River wary of Libertad|
|Colombian Primera A Review: Santa Fe stay top, Medellin lose|
|Valencia must bounce back - Nuno|
|Ecuadorian Primera A Review: Blanco inspires Barcelona|
|Liga del Futbol Profesional Boliviano Review: Wilstermann go top, Blooming slip up|
|MLS Review: Sounders deny Galaxy, Donovan|
|Venezuelan Primera Division Review: Caracas continue rise, Tachira stumble|
|Uruguayan Primera Division Review: Alonso´s brace inspires rampaging Nacional|
|Inter behind Mazzarri - Ausilio|
|Peruvian Primera Division Review: Alianza Lima leapfrog Union Comercio|
|Benitez happy with second half|
|Costa Rican Primera Division Review: Alajuelense jump clear, Saprissa win fifth straight|
|Liga MX Review: Leon continue resurgence|
|Brazilian Serie A Review: Cruzeiro, Sao Paulo bounce back|
|Hart: Aguero ´useless´ in training|
|Inter´s season starts now - Hernanes|
|Lopez rues lack of concentration|
|Serie A Review: Honda inspires Milan, Inter held|
|Ligue 1 Review: Marseille extend lead, Lyon put five past Montpellier|
|Inter 2 Napoli 2: Hernanes rescues a point|
|Maran appointed new Chievo boss|
|Bundesliga Review: Hoffenheim still unbeaten, Paderborn back to winning ways|
|Hughes ´disappointed´ by Moses criticism|
|Eredivisie Review: Cambuur fight back to share derby spoils, Go Ahead win thriller|
|Furious Monk urges Moses punishment|
|Taarabt not fit to play football - Redknapp|
|Rodgers relieved with Liverpool victory|
|Monk blasts referee over Stoke penalty|
|Defeat an ´absolute injustice´ for Redknapp|
|CSL Review: Evergrande close in on title, Harbin Yiteng relegated|
|Indian Super League Review: Moritz inspires Mumbai in Pune pummelling|
|Stoke City 2 Swansea City 1: Substitute Walters heads home winner|
|Thai Premier League Review: Chonburi close gap on leaders Buriram|
|Inzaghi seeking defensive improvements|
|Porto v Athletic Bilbao: Lopetegui expecting tough test|
|BATE v Shakhtar Donetsk: Visitors in upbeat mood ahead of UEFA Champions League test|
|Schalke v Sporting Lisbon: Draxler warns more is to come|
|Chelsea v Maribor: Mourinho to resist urge to chop and change|
|Gerrard ´in shock´ after Liverpool snatch late win|
|Verona 1 Milan 3: Honda brace seals victory|
|QPR 2 Liverpool 3: Caulker own goal gives visitors victory after late drama|
|Simeone praises Griezmann impact|
|Chievo sack Corini|
|Barcelona v Ajax: Mascherano calls for focus|
|APOEL v Paris Saint-Germain: Visitors battling injury crisis|
|Ribery hoping to get back to best|
|LFP to investigate Nice-Bastia clash|
|Allardyce lauds front two|
|Roma v Bayern Munich: Destro raring to go|
|Atletico Madrid 2 Espanyol 0: Simeone´s men take the points|
|CSKA Moscow v Manchester City: Pellegrini welcomes pressure|
|Winger is a Tad special - Koeman|
|Ancelotti dismisses Sterling speculation|
|K.League Review: Jeonbuk go seven points clear at top|
|Poyet expects response after eight-goal thrashing|
|Oscar coming of age at Chelsea|
|Warnock eyes brighter future for Zaha|
|Garcia relishing Bayern clash|
|Martinez commends Alcaraz|
|Pellegrini sounds Aguero warning to opposition|
|A-League Review: Villa rescues City again, Perth Glory top after late drama|
|MLS Review: DC wrap up Eastern Conference|
|Vidal slams media ´lies´|
|CONCACAF Champions League Preview: Porter wants Portland focus|
|Roma refocus on Bayern|
|Clean sheet pleases Di Matteo|
|Durm withdraws with thigh strain|
|We deserved more - Valverde|
|La Liga Review: Barca, Real win easily|
|Pelle: We had to keep going|
|Draw changes nothing - Allegri|