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'
|Robben hopeful of finalising Bayern future|
|Sarri talks up Balotelli to Napoli|
|Everton need time and changes, says Koeman|
|Ancelotti lauds Muller after Bayern win|
|Sterling: I have more freedom under Guardiola|
|Mourinho: Maybe no Premier League title for United this season|
|Bayern laid down a marker - Rummenigge|
|Conte ´maybe the best in the world´ - Guardiola|
|Pioli laments Inter´s ´step backwards´|
|Ronaldo and Mourinho ´fully compliant´ with tax obligations, insists Gestifute|
|Napoli 3 Inter 0: Pioli dealt emphatic first Serie A defeat|
|Mainz 1 Bayern Munich 3: Lewandowski double inspires champions|
|´I have found my luck at Leipzig´ - Hasenhuttl dismisses Arsenal talk|
|Messi better to watch than Ronaldo, says Saviola|
|´I don´t care about age´ - Klopp committed to promoting youngsters|
|Koeman: Ibrahimovic was fantastic at 19|
|Pulis not letting court decision tarnish Palace memories|
|Carroll to make West Ham return against Arsenal|
|Real Madrid must win LaLiga and end Barca dominance - Roberto Carlos|
|Barcelona v Real Madrid: Zidane´s men eye LaLiga supremacy|
|Costa discipline issues in the past - Conte|
|A-League review: Melbourne Victory held by Perth Glory|
|I deserve criticism if Dortmund´s players do - Tuchel|
|Emery wants Cavani to dethrone Ibrahimovic|
|Martial is happy again, says Mourinho|
|Guardiola wary of Costa and Pedro|
|Messi, Ronaldo and Griezmann to battle it out for FIFA award|
|Conte reveals admiration for Guardiola philosophy|
|Mourinho: Schweinsteiger can stay at Man Utd|
|Conte: It is a pity Chelsea sold De Bruyne|
|Carrasco now competing with Griezmann and Gameiro - Simeone|
|Luis Enrique: Clasico not decisive in title race|
|Barcelona have no weaknesses - Zidane|
|Zidane: Ronaldo´s hunger for success key for Real Madrid|
|Barcelona midfielder Iniesta back for Clasico|
|Higuain does not need Dybala to score - Allegri|
|Summerbee: Chelsea blew it with De Bruyne|
|Ranieri, Zidane and Santos up for FIFA coach award|
|Chelsea paid me £50,000 to prevent child abuse revelations - Johnson|
|Vertonghen signs new Tottenham deal|
|Klopp hopeful on Lallana and Firmino|
|Ozil: Arsenal can win Champions League with a bit of luck|
|Sturridge exit a non-story, says Klopp|
|Debuchy out for up to six weeks|
|Pardew ready to turn around slumping Palace|
|Arsenal will not sign Cazorla replacement - Wenger|
|Courtois not getting carried away over Chelsea form|
|CAS to rule on Blatter case on Monday|
|Ozil refuses to rule out Real Madrid return|
|Sterling: I am keeping away from certain stuff I was doing last year|
|Leverkusen´s Volland out until 2017|
|Aloisi rules out Roar swoop for Keane|
|Pele reflects on ´sad moment´ of Chapecoense tragedy|
|Southgate urges downtime responsibility from England|
|Ranieri: Leicester signings not to blame for poor form|
|Sky is the limit for ´special´ Donnarumma, says Hart|
|Southgate drops Rashford Euro U21s hint|
|Chapecoense will rebuild with the world´s support, says vice-president|
|Toure can win Premier League for Manchester City - Hart|
|Only a matter of time until Balotelli gets Italy call - Zola|
|Ter Stegen can become new Valdes at Barca - Zambrotta|
|´Exceptional´ Costa just like Drogba, says Zola|
|Ronaldinho could play for Chapecoense|
|Garcia extends Manchester City deal|
|Injured Cazorla to miss another three months|
|Schmeichel has a gentle handshake, not like Wasilewski! - Ranieri|
|Lloris to follow Kane and pen new Spurs deal|
|Puel: I replaced Koeman to give Southampton youngsters a chance|
|Barcelona could have signed Ronaldo for €17million before Real Madrid move|
|Ancelotti keen for Lahm to carry on playing|
|Leipzig will last the pace in title race, says Ancelotti|
|If Bayern lose I´ll cry and miss El Clasico! - Ancelotti|
|No Europe could give Conte edge over Guardiola - Summerbee|
|Southgate keeps Rooney as captain but calls for leaders to emerge|
|Real Madrid dominate FIFA FIFPro World11 nominations|
|Sigurdsson: Kane will be Spurs´ main man for years to come|
|Ronaldo can beat Messi to next two Ballons d´Or - even if he loses the Clasico|
|No break clause in Southgate´s England contract|
|Kane signs new contract with Tottenham|
|Phelan hopeful on Hernandez and Maloney for Boro trip|
|Pioli not entertaining Messi to Inter possibility|
|Conte doing a remarkable job at Chelsea - Zola|
|Nesta amazed by ´special´ Totti|
|Elneny sick in Saints loss - Wenger|
|Atletico Nacional supporters pay tribute to Chapecoense air crash victims|
|Enzo Zidane targets more opportunities after ´special´ debut goal|
|Mkhitaryan excited by United display|
|Toronto FC 5 Montreal Impact 2 (aet, 7-5 agg): Hosts storm to maiden MLS Cup berth|
|Emotional Cavani brings up 100 amid Chapecoense tributes|
|Barca did not take Hercules lightly, insists Luis Enrique|
|Emery feels PSG are slowly making progress|
|Barcelona do not need to be scared, insists Rafinha|
|Simeone wants consistency from Gaitan|
|Wenger blasts sloppy Arsenal after Southampton loss|