Real Madrid will play Paris Saint-Germain in a blockbuster FIFA Club World Cup semi-final, after Kylian Mbappe's stunning acrobatic effort sealed a 3-2 victory over Borussia Dortmund.
First-half goals from Gonzalo Garcia and Fran Garcia put Xabi Alonso's side in control at the MetLife Stadium.
Maximilian Beier gave Dortmund hope in stoppage time, but Mbappe's superb scissor-kick eventually proved crucial despite a last-gasp Serhou Guirassy penalty and Dean Huijsen red card.
Just 10 minutes had elapsed in East Rutherford when Madrid broke through. Gonzalo Garcia - starting ahead of Mbappe once again - was in the right place to steer home Arda Guler's neat cross.
It was 2-0 in the 20th minute as a neat move culminated in Trent Alexander-Arnold drilling the ball across the face of goal, and Fran Garcia arriving at the far post to apply a firm finish.
Madrid appeared to be cruising to victory until the 92nd minute, when they failed to deal with a cross and Beier drilled past Thibaut Courtois.
Nevertheless, Los Blancos restored their two-goal buffer within 60 seconds, as Guler's deep cross was brilliantly volleyed in by Mbappe.
There was time for further drama, though. Guirassy halved Dortmund's deficit again from the penalty spot after he was dragged down by Huijsen, who was shown a straight red card.
Marcel Sabitzer then almost forced extra time with a last-gasp volley that Courtois kept out to seal his side's passage into the last four.