Thomas Mueller equalized in the first minute of injury time and Bayern Munich scored two more goals in extra time to complete a thrilling 4-2 victory over Juventus on Wednesday that sent the German powerhouse into the Champions League quarterfinals.
Thiago Alcantara scored in the 108th minute to put Bayern ahead for good in the second leg match of the last 16 and Kingsley Coman, on loan from Juventus, added the hosts' fourth goal just two minutes later to seal a 6-4 victory on aggregate.
Bayern trailed 2-0 at halftime after goals from Paul Pogba and Juan Cuadrado put Juventus firmly in charge. The home side looked to be on the way out until Robert Lewandowski scored in the 73rd and Mueller's late header changed everything.
"To score four goals against an Italian side, wow, compliments to my team," Bayern coach Pep Guardiola said.

The match, at least in regulation time, was nearly a replica of the first leg in Turin, where Bayern dominated and led 2-0 before Juventus struck back with two late goals to salvage a draw.
Juventus, last season's runner-up, produced a clever tactical display, defending smartly and relying on dangerous counterattacks. And it was seconds away from success.
"It's disappointing, because we were so close," Juventus coach Massimiliano Allegri said.
Guardiola's team, a five-time winner, is in its fifth straight quarterfinal.
"After our first goal, we saw that Juventus was not counterattacking any more. It's that German mentality to try until the end," Guardiola said.
With Bayern besieging the Italians' goal, Douglas Costa sent a cross from the right corner and Lewandowski headed home at the far post from close range to put Bayern back into the match.
Bayern's perseverance paid off in the first minute of added time. Patrice Evra lost the ball near the penalty area and Coman crossed to the far post for Mueller to head home and send the 71,000 at the Allianz arena into frenzied celebrations.
Alcantara, a substitute in extra time for Franck Ribery, swapped passes and beat Neuer, before Coman, also a substitute, made sure of victory by curling a shot past Gianluigi Buffon.

Juventus may have taken Bayern by surprise with its pressing deep inside Bayern's half from the opening whistle and the Italian side got its dividend early when Pogba scored his first Champions League goal since November 2014.
Sami Khedira sent a long ball down the right and David Alaba missed his clearance attempt. With Manuel Neuer also mistiming his exit from the goal, Stephan Liechtensteiner was able to square the ball to Pogba, who slotted home from the edge of the penalty area into the empty net.
Juventus pulled back a little after the goal, but always looked dangerous and doubled the lead in the 28th after a great run by Morata.
The forward picked up the ball in his half and slalomed past four defenders before passing to Cuadrado, who fired inside the near post over Neuer.
Buffon parried an effort from Mueller in the 42nd and the attempted clearance by the Juventus defense bounced off Lewandowski and flew just wide.
Immediately after, Neuer did well to save a close-range shot by Cuadrado.
Juventus had former Bayern forward Mario Mandzukic on the bench, while Bayern was without winger Arjen Robben because of a groin problem.
The Italians were already without midfielder Claudio Marchisio, defender Giorgio Chiellini and striker Paulo Dybala, all injured.
Morata had two chances early in the second half after counterattacks but finished poorly. Mandzukic came in for Morata in the 71st but Juventus missed Morata's speed.

Barcelona's big three of Lionel Messi, Luis Suarez and Neymar all scored to beat Arsenal 3-1 on Wednesday, sending the defending champions into the Champions League quarterfinals for a ninth consecutive season with a 5-1 victory on aggregate.
Leading the tie after Messi scored both goals in a 2-0 first leg win, Suarez passed for Neymar to open the scoring in the 18th minute at Camp Nou.
Arsenal's Mohamed Elneny struck in the 51st, and the English side threatened to add another before Suarez answered with an acrobatic goal in the 65th.
Messi chipped in Barcelona's third with two minutes to play following a pair of timely stops by goalkeeper Marc-Andre ter Stegen to protect the lead.
Arsenal coach Arsene Wenger, whose side was eliminated from the round of 16 for a sixth straight year, said Barcelona's strike trio took the game to the level of "art."
"We played against the team with the best strikers I have seen," Wenger said. "The three together are exceptional. Messi is incredible. They are two or three players who transform normal life into art."

Barcelona increased its Spanish record streak to 38 unbeaten games, and stayed on course to repeat the treble of European Cup, Spanish league and Copa del Rey titles.
While Barcelona's march toward a season end that promises even more silverware, Wenger has seen his side exit two of three competitions this week.
Arsenal bowed out of the FA Cup last weekend and now must focus on catching Tottenham and leader Leicester in the English Premier League standings.
Arsenal midfielder Mesut Ozil took the initiative during Barcelona's subdued start as a light rain came down over the Catalan capital.
But Messi, Neymar and Suarez quickly teamed up to put Barcelona into Friday's draw for the quarterfinals, taking the three's combined tally to 106 goals this season.
Moments after Messi forced an excellent save by goalkeeper David Ospina, it was Suarez who caught Arsenal's backline in disarray. His diagonal pass left Neymar alone to slot a shot under Ospina, who touched the ball but couldn't keep it out.
"They are able to create chances all by themselves, but they also have a great team behind them to put them into the best position," Barcelona coach Luis Enrique said of his three stars. "We are thrilled to have them and to have them providing the first line of pressure."
Arsenal wasn't without its share of possession and shots, just a lack of finishing that kept the visitors without a goal before halftime.
The English side found the net after the restart when Elneny blasted home a first-time strike from the edge of the area after Alexis Sanchez slid him the ball from the right side.
Danny Welbeck almost had a second goal for Arsenal after he appeared to have got the better of Javier Mascherno, only for Barcelona's last defender to recover in time and block his shot.
Suarez responded to the rally with an athletic strike that combined both power and finesse. Eyeing Dani Alves' cross, Suarez leapt, pivoted and struck the ball with his right shin to send it flying into the top corner.
"I don't know what I struck it with, but it went in," Suarez said.
Welbeck went close again with a shot that grazed the upright, and Ter Stegen was forced to make a one-handed save to block Sanchez's free kick before parrying substitute Olivier Giroud's attempt to put in the rebound with 10 minutes to play.
Messi rounded off Barcelona's 10th successive home win the competition when he pounced on a deflected pass before lifting the ball over Ospina.
Barcelona also eliminated Arsenal from the Champions League knockout rounds in 2010 and 2011, after beating them in the 2006 final.