Sergio Oliveira scored twice as 10-man Porto dumped Juventus out of the UEFA Champions League with a scintillating away goals victory after a 3-2 second-leg defeat in Turin.
Juventus' task of overturning a 2-1 deficit from the first leg was compounded when Oliveira's penalty gave Porto the lead after 19 minutes, but Federico Chiesa netted twice in 14 second-half minutes - either side of a red card shown to Porto striker Mehdi Taremi - to take the round-of-16 tie into extra-time.
Oliveira buried a stunning second goal of the night with five minutes left in the second period of extra-time, only for Adrien Rabiot to equalise and set up a tense finish.
Porto held on to spark wild celebrations on the visiting bench as Juve's quest for a first European title since 1996 ended in failure, heaping pressure on head coach Andrea Pirlo.
Taremi caused Juve's defenders early problems before he went down under a challenge from Merih Demiral to win Porto a 19th-minute penalty.
Oliveira confidently buried the spot-kick low to Wojciech Szczesny's right as the goalkeeper dived left, taking the midfielder's tally to four goals in his last six Champions League games.
Juve were back in it four minutes into the second half, when Cristiano Ronaldo deftly controlled the ball on the edge of the six yard box and gave Chiesa the opportunity to sweep high into the far corner of the net.
Taremi dealt Porto another blow when a reckless challenge on Chiesa earned him a yellow card moments before he was sent off for booting the ball away after the whistle had been blown 54 minutes in.
The 10 men of Porto withstood fewer than 10 minutes before Chiesa lost his marker and headed Juan Cuadrado's cross into the top corner of the net, despite Agustin Marchesin getting a hand to it.
Cuadrado struck the underside of the crossbar with a thunderous effort as there were chances at either end before the game entered extra-time.
There was another twist when Oliveira sent a 25-yard free-kick under the wall and into the bottom corner of the net with five minutes to play and although Rabiot headed home at a corner two minutes later, Juve could not deny Porto a place in the quarter-finals despite applying more late pressure.