Lazar Samardzic slotted home a stoppage-time penalty to complete a dramatic 4-1 victory for Atalanta over Borussia Dortmund, sending the Italian side into the Champions League's last 16 with a comeback 4-3 aggregate triumph.
Dortmund's Ramy Bensebaini was sent off after his studs caught the head of Atalanta'sNikola Krstovic in the penalty area and Samardzic converted the spot kick in the 98th minute to send the Italians through.
Atalanta will now face either Arsenal or Bayern Munich in the round of 16 with the draw on Friday.
The hosts had to fight back following last week's 2-0 loss in Germany, and Gianluca Scamacca tapped in at the far post to give them a fifth-minute lead as they got off to a dream start.
Dortmund had their share of chances but it was their keeper, Gregor Kobel, who was busiest in the first half, twice denying Nicola Zalewski.
He was beaten, however, on the stroke of half-time when Davide Zappacosta's shot was deflected into the net off Bensebaini to make it 2-0.
Atalanta keeper Marco Carnesecchi made the save of the match when he tipped Serhou Guirassy's low drive wide in the 49th minute, to protect their two-goal advantage.
Dortmund went even closer in the 53rd with Maximilian Beier's shot bouncing off the post.
FULL LIST OF CHAMPIONS LEAGUE FIXTURES AND RESULTS
Instead it was the hosts who scored again thanks to Mario Pasalic's header at the far post to go 3-0 up and take control of the tie.
Dortmund, however, bounced back with substitute Karim Adeyemi adding instant pace to their game and curling his 75th-minute shot into the top corner as the visitors hoped to take the contest into extra-time.
Yet Bensebaini then tried to clear a cross in the box with a backheel but caught the head of Krstovic, who went down bleeding.
The hosts were awarded a penalty following a lengthy VAR review and Samardzic beat Kobel to send his team through with the last kick of the game.

Holders Paris St Germain edged into the Champions League's last 16 after a 2-2 home draw with 10-man Monaco in the second leg of their knockout-round playoff on Wednesday, advancing 5-4 on aggregate from a tense tie that went right to the wire.
Monaco took the lead on the stroke of half-time through Maghnes Akliouche, but after Mamadou Coulibaly was sent off, PSG took immediate advantage to equalise through Marquinhos (above) in the 60th minute and then went ahead six minutes later through Khvicha Kvaratskhelia.
But Monaco set up a furious finish when substitute Jordan Teze scored from Simon Adingra's cross to make it 2-2 in stoppage time and Wout Faes missed a last-gasp chance to force the game into extra time as a glancing header went wide.
PSG will next month meet either Barcelona or Chelsea in the last 16.

Galatasaray were beaten 3-2 at Juventus but reached the last 16 of the Champions League 7-5 on aggregate thanks to two extra-time goals after the hosts came agonisingly close to pulling off a great escape despite playing with 10 men.
Left with a mountain to climb after a 5-2 loss in Istanbul, Juventus forced the tie into the extra 30 minutes and looked to have the upper hand before Victor Osimhen struck at the end of the first half of extra time and Baris Alper Yilmaz netted late on.
Manuel Locatelli opened the scoring for the home side from the penalty spot eight minutes before the break.
Juventus had Lloyd Kelly sent off three minutes after the interval before Federico Gatti scored with 20 minutes left.
Galatasaray were unable to capitalise on their numerical advantage and Weston McKennie headed in eight minutes from the end, but it is the Turkish side who will meet either Liverpool or Tottenham in the round of 16 with the draw on Friday.