Bayern Munich set up a Champions League semi-final date with holders Paris St-Germain after they came out on top of a seven-goal thriller against Real Madrid.
Five goals were scored in a blistering, breathless first half of a quarter-final second-leg cracker, before the game switched to a tactical battle after the break with both sides slowing down the tempo.
It looked like extra time would be needed to settle the outcome, but Real Madrid substitute Eduardo Camavinga was shown a second yellow card for time-wasting four minutes from time following a foul by the French midfielder on Harry Kane.
With a minute left, Luis Diaz delivered a decisive blow with his 24th goal of the season.
The former Liverpool forward played a one-two with Jamal Musiala before sending a curling strike into the top corner via a slight deflection.
After losing the first leg 2-1, Real led three times at the Allianz Arena with Arda Guler scoring twice, but Kane netted his 50th goal of the campaign as Bayern responded each time.
They ensured there was to be no comeback from the 15-time European champions when Michael Olise curled in a fourth in added time to seal a 4-3 win on the night and 6-4 success on aggregate.