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'
|Revolution striker Kamara given yellow card for twerking|
|Klopp rubbishes ´defensive problem´ claims|
|Madrid tracking Dortmund boss Tuchel, claims Watzke|
|MLS Review: Dallas win Supporters´ Shield, Sporting KC sneak into play-offs|
|Ronaldo has ´addiction for goals´ - Morata|
|Emery refuses to point the finger at Di Maria after Marseille draw|
|Zidane vows to play Morata more often|
|Garcia hails Marseille team spirit after PSG draw|
|Neville urges calm at United after Mourinho´s horror Chelsea reunion|
|Zamalek 1 Mamelodi Sundowns 0 (1-3 agg): South Africans clinch first CAF Champions League title|
|Paris Saint-Germain 0 Marseille 0: Champions thwarted in Garcia´s first game|
|Real Madrid 2 Athletic Bilbao 1: Morata to the rescue|
|Bailly sustains knee ligament injury|
|Simeone frustrated by Atletico´s finishing|
|Conte encouraged crowd as Chelsea deserved it|
|Chelsea thrashing painful for Mata and United|
|Chelsea ´dominant from first minute to last´ - Cahill|
|Mourinho blames ´incredible defensive mistakes´ for United loss|
|N´Zonzi cools talk of title challenge|
|Chelsea 4 Manchester United 0: Rampant Blues humble returning Mourinho|
|De Boer: Inter ´played with fear´ in first half|
|Juventus confirm Dybala thigh injury|
|Guardiola vows to fix Manchester City concerns|
|Sevilla 1 Atletico Madrid 0: N´Zonzi strikes to end Simeone´s unbeaten start|
|Bayern set to open Robben, Ribery renewal talks|
|Puel satisfied with City draw|
|Rangers 0 Celtic 1: Late Dembele strike settles Old Firm semi-final|
|Croatian player teased for being ´too smart for football´|
|Redmond expected City to give up chances|
|Feyenoord 1 Ajax 1: Kuyt cancels out Dolberg opener|
|Atalanta 2 Inter 1: Late penalty heaps pressure on De Boer|
|Voller defends Schmidt over touchline dismissal|
|Injured Rooney left out of United squad for Chelsea trip|
|Manchester City 1 Southampton 1: Guardiola´s men back on top but winless run continues|
|Guangzhou Evergrande clinch record sixth straight Super League title|
|´Icon´ Rooney not finished at United - Pereira|
|Zubizarreta-Garcia meeting confirmed by Marseille president|
|Aspas-inspired Celta thrash Deportivo in Galician derby|
|Lorient dismiss coach Ripoll|
|Ronaldo´s impact on football is myth-like - Perez|
|United not distracted by Mourinho´s Chelsea return - Young|
|A-League Review: 20,000th goal helps Newcastle Jets to shock comeback|
|Cech laments Arsenal´s lack of composure|
|Qatar World Cup worker dies at stadium site|
|Galliani wanted Montella at Milan in 2014|
|Mourinho hopes never to return to Chelsea|
|Barzagli angry with AC Milan defeat|
|Iniesta admits ´it could have been worse´ after Barcelona confirm 6-8 week absence|
|Mourinho: I´ll never sell Rooney|
|Ancelotti admits to bowing to Ronaldo demands|
|Ancelotti doubts Conte´s Chelsea can win Premier League|
|Romagnoli happy at Milan amid Chelsea links|
|City must not change their style - Gundogan|
|Conte wants to emulate Mourinho|
|Montella: Rising Milan must handle new expectations|
|Rummenigge dispels Alaba-Manchester City reports|
|Success the key to building connection with fans - Mourinho|
|Gundogan hails ´amazing´ duo Guardiola and Klopp|
|AC Milan players influenced ref for disallowed goal, fumes Allegri|
|Allardyce incident a tragedy, says FA chief executive Glenn|
|Locatelli can´t comprehend beating Buffon|
|Mentality the key for Chelsea battle, says Rashford|
|Klopp hints at Gerrard return|
|Ancelotti hints at future Costa selfie|
|Luis Enrique salutes Barca´s spirit in adversity|
|Iniesta ruled out for up to eight weeks|
|AC Milan 1 Juventus 0: Locatelli wondergoal seals controversial victory|
|Ribery ready for Bayern Munich return|
|Buffon given vote of confidence amid Donnarumma reports|
|Clean sheet pleases Ancelotti|
|Pulis tips Liverpool for title tilt|
|Alonso delighted with dominant Bayern display|
|Klopp: West Brom draw would have been a joke|
|De Boer praises Icardi mentality amid ultras row|
|Valdes recovery heartens Karanka|
|Spanish football can´t have such a disgraceful referee - Pitarch rages after Barcelona loss|
|Luis Enrique fears long absence for Iniesta|
|Bilic insists West Ham deserved last-gasp win|
|Dortmund were not ready for Bundesliga intensity - Tuchel|
|Liverpool 2 West Brom 1: Mane and Coutinho on target for Klopp´s men|
|Bayern Munich 2 Borussia Monchengladbach 0: Champions back on track thanks to Costa and Vidal|
|Brazil great Ronaldinho considering three contracts|
|Luis Enrique, Valencia condemn missile throwing after Barcelona winner|
|Wenger to raise a glass after toasting Cech|
|Dyche delighted to see Clarets get back to basics|
|Moyes claims winner should have been ruled out|
|Karanka declares Cech man-of-the-match as Boro make their point|
|Leicester power too much for Palace - Pardew|
|Last-minute winner even sweeter, says Suarez|
|Mazzarri: Watford should have had two penalties|
|Phelan demands fight from Hull|
|Better than Messi but behind Ronaldo - the stats behind Neymar´s first 100 LaLiga games|
|Ranieri rewards ´best performance of the season´ with cake|
|He was due one! - Hughes revels in Shaqiri´s free-kick success|
|Boro deserved a point - Cech|
|Koeman: Burnley defeat is unfair on Everton|
|Bradley takes positives from disappointing draw|
|Suarez and Neymar struck by missile after Messi winner|
|Valencia 2 Barcelona 3: Messi penalty snatches win but champions fret over Iniesta injury|
|West Ham United 1 Sunderland 0: Late Reid strike seals it for the Hammers|
|Emery calm over Thiago Silva Juventus talk|
|Burnley 2 Everton 1: Last-minute Arfield strike earns the points|
|Arsenal 0 Middlesbrough 0: Birthday blank for Wenger´s table-toppers|
|Leicester City 3 Crystal Palace 1: Champions return to winning ways|
|Swansea City 0 Watford 0: Encouraging signs, but no win for Bradley|
|Hull City 0 Stoke City 2: Stunning Shaqiri double sinks Tigers|
|Pochettino ´positive´ over Kane fitness|
|Ingolstadt 3 Borussia Dortmund 3: Pulisic rescues a point|
|Spalletti looks to end Blind feud|
|I did not see Sissoko elbow - Pochettino|
|Barcelona confirm Iniesta ligament damage|
|Howe thrilled with Bournemouth display|
|Arter: Sissoko elbow was an accident|
|Garcia claims he snubbed West Ham approach|
|Sampaoli different to Bielsa, says Simeone|
|Bournemouth 0 Tottenham 0: Cherries hold toothless Spurs|
|Lippi named China boss after Guangzhou cancel contract|
|Simeone expects title challenge from Sevilla|
|Special quality makes Messi better than Ronaldo - Tite|
|Zidane reassures Morata: This is a marathon|
|Ronaldo made himself - Ferguson|
|A-League Review: Victory and Roar get first wins|
|Blind hits back at Spalletti in Strootman row|
|Mourinho has not lost his magic, insists Mikel|
|Suarez open to Ajax return|
|Young: There is more to come from Pogba|
|Digne at home in Barcelona and ready to help win trophies|
|Defoe´s finishing is ´absurd´ - Bilic|
|Stekelenburg grounded despite penalty heroics|
|Thiago Silva can be our Pirlo - Juve CEO hints at move for PSG defender|
|Koscielny calls for ´tough´ Arsenal|
|Birthday boy Wenger: Result will determine celebrations|
|MLS fines Drogba for Impact snub|
|Klopp backs Sturridge to bounce back|
|Conte: Chelsea still scarred from last season|
|Giggs: United decline was not inevitable|