Sergio Aguero struck twice in the closing minutes to complete a hat-trick and revive Manchester City's Champions League hopes with a 3-2 win over 10-man Bayern Munich.
City's challenge had looked all but over after Aguero's early penalty was cancelled out by quickfire goals from Xabi Alonso and Robert Lewandowski before half-time.
But Aguero seized on a mistake from the otherwise brilliant Alonso to equalise with five minutes remaining and then broke through again after a Jerome Boateng error for a brilliant winner.
The victory was City's first of the competition and brought them level with Roma and CSKA Moscow in Group E with a trip to the Italian capital to come next month.
City certainly did it the hard way after surrendering their early advantage.
Aguero struck from the spot after being brought down by Medhi Benatia, who was sent off for his challenge.
But they were unable to build on that advantage and it was left to the prolific Aguero to save them, the Argentinian doing so in style by taking his goal tally for the season to 17.
CSKA Moscow's last-gasp draw against Roma had meant City could not be eliminated on the night and the atmosphere, flat in home European games this season, reflected that hope.
City responded by making a lively start. Jesus Navas picked out the run of Samir Nasri with a superb through ball and the Frenchman looked threatening as he checked back to shoot, although his effort was blocked.
Gael Clichy maintained the positive start with a quick charge down the left but his cross for Frank Lampard was slightly overhit.
Bayern also had some prolonged spells of possession. Even without players such as Phillip Lahm, David Alaba, Javi Martinez, Holger Badstuber and Thiago Alcantara, and Bastian Schweinsteiger, Thomas Muller and Mario Gotze on the bench, they looked dangerous.
Arjen Robben was typically full of running and flicked a superb pass into the box for Sebastian Rode to test Joe Hart at point-blank range.
Robben then drove a shot wide before breaking down the left to set up Rafinha, whose low drive was blocked by Eliaquim Mangala.
It proved a critical intervention as Lampard released Aguero with a fine long pass.
The Argentinian raced into the area and looked to have the better of Benatia before the Moroccan brought him down with an ill-timed challenge.
Czech referee Pavel Kralovec did not hurry his decision but correctly pointed to the spot and showed the red card to Benatia.
Aguero's spot-kick was clinical and Lampard went close to hitting a second soon after with a shot that flew narrowly wide from a well-worked free-kick.
But Bayern quickly readjusted to the loss of a man, with Rode sacrificed for Dante and Alonso commanding more of the ball to dictate play.
The former Liverpool and Real Madrid schemer started to edge his battle with old foe Lampard and showed his eye for goal with a superb free-kick.
Lewandowski was brought down by Mangala on the edge of the box after 40 minutes and Alonso caught Hart unawares by calmly stroking a low shot past the wall and into the bottom corner.
City were behind before they had time to regroup as their former player Jerome Boateng, scorer against them in September, again undid them.
Boateng floated in a cross that dipped over Vincent Kompany and Lewandowski outmuscled Bacary Sagna to send the ball looping into the net off his shoulder.
It might have got worse for City early in the second half as Alonso drove Bayern forward again and exchanged passes with Franck Ribery before curling over.
City rallied with Navas shooting at Manuel Neuer and James Milner going close.
Lampard brought the best out of Neuer as the Germany World Cup-winning goalkeeper produced a fine one-handed save to deny the former England midfielder from the edge of the area.
Substitute Pablo Zabaleta had an effort blocked and Kompany stabbed wide after going forward for a corner.
Despite that, the game looked to be drifting away from City when Alonso misplaced a pass and Aguero broke clear to tuck a low shot past Neuer.
City suddenly found an extra gear and when Boateng was hurried into a clearance in the last minute, Aguero was on hand again to pounce and beat Neuer from close range.
The transformation could mark a turning point for City in Europe, but there is still work to be done in Rome.
Watch the video highlights here (US viewers only):
Mobile app users, watch the video here.
200+ Channels With Sports & News
- Starting price: $33/mo. for fubo Latino Package
- Watch Premier League, World Cup, Euro 2024 & more
- Includes NBC, USA, FOX, ESPN, CBSSN & more
Live & On Demand TV Streaming
- Price: $69.99/mo. for Entertainment package
- Watch World Cup, Euro 2024 & MLS
- Includes ESPN, ESPN2, FS1 + local channels
Many Sports & ESPN Originals
- Price: $6.99/mo. (or get ESPN+, Hulu & Disney+ for $13.99/mo.)
- Features Bundesliga, LaLiga, Championship, & more
- Also includes daily ESPN FC news & highlights show
2,000+ soccer games per year
- Price: $4.99/mo
- Features Champions League, Serie A, Europa League & NWSL
- Includes CBS, Star Trek & CBS Sports HQ
175 Premier League Games & PL TV
- Starting price: $4.99/mo. for Peacock Premium
- Watch 175 exclusive EPL games per season
- Includes Premier League TV channel plus movies, TV shows & more
- Are World Cup tickets available for Qatar 2022?
- Minamino leaves Liverpool for Ligue 1 club Monaco
- Netherlands looks to snap World Cup dud at Qatar 2022
- Lukaku expected in Milan ‘this evening’ ahead of Inter return: CEO
- French minister apologises for Champions League chaos
- Where to find Corinthians vs. Boca Juniors on US TV
- Where to find USWNT vs. Colombia on US TV
- LAFC confirms 12-month Bale deal with options through 2024
- Barcelona unveils 2022/23 away kit to honor Olympics anniversary
- Favre new Nice coach as Galtier in PSG talks