Two goals in three extra-time minutes from substitutes Thiago Alcántara and Kingsley Coman decided a roller-coaster UEFA Champions League round of 16 tie in Bayern München's favour, as an initially excellent Juventus display foundered amid a dramatic finale to an already see-saw encounter.
In a direct reversal of the Turin first leg, and at a ground where Bayern had won their preceding nine UEFA Champions League home matches
Juve led 2-0 through Paul Pogba and Juan Cuadrado's first-half goals only to be pegged back just short of the final whistle.
For all Bayern's possession football, the hosts were revived by headers from crosses – Robert Lewandowski's 73rd-minute conversion of a Douglas Costa centre, followed by Thomas Müller nodding in Coman's wicked 91st-minute delivery.
That paved the way for Thiago, who finished off a one-two with Müller by rifling past Gianluigi Buffon with 108 minutes on the clock. Some 120 seconds later teenager Coman – ironically, a player on loan from Juventus – broke to fire in the irreversible fourth.
That turnaround made a distant memory of the brilliant start from Massimiliano Allegri's men.
Pogba's fifth-minute breakthrough stemmed from Sami Khedira's positive forward pass which, via a miscontrol from David Alaba under pressure from Stephan Lichtsteiner – and with Manuel Neuer stranded – the Frenchman finished comfortably.
With Juve pressing high, Bayern were rattled and it was no surprise when Juve struck again on 28 minutes. Álvaro Morata's brilliant upfield surge was rewarded with a classy finish by Cuadrado.
The Bundesliga leaders were being outgunned by opponents missing Paulo Dybala and Giorgio Chiellini; Cuadrado could have made it three.
Josep Guardiola's men had scored at least three goals in each of their last seven home fixtures in the competition. Similar was needed here and Lewandowski eventually weighed in with one. Müller then levelled the tie, before the substitutes finished the job in extra time.
