Gareth Bale came off the bench to score a late winner as Real Madrid avoided embarrassment in a 2-1 victory over Al Jazira in the Club World Cup semi-finals.
Bale, making just his second appearance since September, found the net with his first touch on a frustrating outing for Madrid, who dominated possession but struggled to find a way through.
An inspired display by Al Jazira goalkeeper Ali Khaseifa thwarted the European champions early on before Romarinho fired the Emirati outfit into an unlikely lead.
Real Madrid had seen two goals disallowed in the first half and Al Jazira were themselves denied by VAR early in the second, with Mbark Boussoufa having an effort chalked off for offside.
Khaseif's withdrawal through injury after 51 minutes sparked the beginning of the Madrid revival, with Ronaldo becoming the competition's all-time top scorer with his sixth Club World Cup goal before Bale completed the turnaround in the 81st minute.
Madrid will now face Gremio in the final in Abu Dhabi on Saturday.
1 - Gareth Bale has scored with his first shot and his first touch of the game against Al Jazira. Impact. pic.twitter.com/8LvLjLBVZ9— OptaJose (@OptaJose) December 13, 2017
Al Jazira goalkeeper Khaseif was predictably kept busy in the early stages and was equal to everything Madrid threw at him.
Two dangerous Ronaldo headers – the deflected second requiring a miraculous reaction save – were kept out by the 30-year-old, while a fierce Luka Modric drive that looked destined for the bottom-left corner was touched onto the post.
Khaseif's all-action opening looked to have taken its toll when he went down injured after 14 minutes, but he was soon back on his feet and springing left to deny Karim Benzema.
Benzema should have done better when he sent another header flying over the crossbar with the goal at his mercy moments later, and Khaseif continued to frustrate Madrid, getting down brilliantly to keep out Modric before Ronaldo sent yet another header straight at him.
Al Jazira attacks were rare, however, and Ali Mabkhout squandered the side's first clear-cut chance by firing wide of the left-hand post.
Benzema finally had the ball in the net after 24 minutes but had his effort ruled out for a Ronaldo shove on Mohamed Ayed, before the France international was himself guilty of costing his side a goal.
Casemiro's header deflected in off a defender to spark Madrid celebrations - but a video review swiftly dampened spirits by judging Benzema to be offside.
And Al Jazira took a shock lead four minutes from half-time, when some lax defending from an underemployed Madrid back line allowed Romarinho to turn inside Raphael Varane and coolly curl around Keylor Navas.
The match looked to have taken another remarkable turn early in the second half but Al Jazira's hopes soon began to unravel.
Boussoufa appeared to have doubled Al Jazira's lead only to be deemed marginally offside after he and Mabkhout had raced clear of an absent Madrid defence.
And an even bigger blow arrived three minutes later when Khaseif's earlier injury forced him off.
Having toiled for an hour trying to get the better of game's star performer, it took just three minutes to beat replacement Khaled Al Senaani – Ronaldo turning in the box and rifling home the leveller.
Al Senaani was on hand to block a Benzema strike as Madrid chased the lead, before the striker's next two efforts bounced off the left-hand upright.
RECORD-BREAKER!— #ClubWC (@FIFAcom) December 13, 2017
With @Cristiano levelling the scores in Abu Dhabi, the @RealMadrid man becomes the # ClubWC 's all-time top scorer, registering his sixth goal in the competition! pic.twitter.com/0hzU5QijsZ
However, Bale's introduction took less than a minute to have a decisive impact on the match, as the Wales international converted from a Lucas Vazquez cutback to find the net with the slightest hint of a deflection from Ronaldo.
|Carvajal hopeful over injury tests|
|Every parent would like a son like Iniesta – Bartomeu|
|Copa Libertadores Review: Cruzeiro thrash Universidad, Martinez scores again|
|Trump warns nations against opposing USA World Cup bid|
|Barcelona very happy with Valverde, says Bartomeu|
|Griezmann confirms Atletico talks over future|
|You´ve got to have balls - Simeone hails defiant Atletico|
|Wenger refuses to blame Koscielny for Griezmann goal|
|Marseille still underdogs against Salzburg, says Payet|
|Wenger rues ´worst possible´ goal from Griezmann|
|Griezmann: Oblak is the best goalkeeper in the world|
|Besiktas refuse to complete abandoned Fenerbahce semi-final|
|Marseille 2 Red Bull Salzburg 0: Thauvin, N´Jie earn semi-final advantage|
|Arsenal 1 Atletico Madrid 1: Griezmann smuggles vital away goal for 10-man Atleti|
|Mourinho: Chelsea sold Salah, not me|
|Vrsaljko and Simeone sent off in dramatic start to Arsenal v Atletico|
|Cazorla trains at Emirates after injury agony|
|Costa makes Atleti bench as Ozil returns for Arsenal|
|Two men remanded in custody over Liverpool fan attack|
|Liverpool book ´extraordinary´ Rome meeting to plan fan safety|
|Burnley confirm Arfield, Marney departures|
|Under-fire Montella acknowledges Sevilla in ´very bad´ form|
|Jerome Boateng to ´fight´ for World Cup place after season-ending injury|
|Ibrahimovic will not play at the World Cup, says Swedish FA|
|Betis would welcome Ceballos back with open arms – Joaquin|
|Turkey submits Euro 2024 bid to rival Germany|
|Meyer ´definitely´ leaving Schalke, confirms Heidel|
|Buffon apologises for snubbing fans after Napoli defeat|
|UEFA charges Bayern Munich over pitch invasion and banner|
|Police charge two over Liverpool fan attack|
|Bayern were naive and reckless – Kimmich|
|Salah a nightmare to train against – Alexander-Arnold|
|Ramos: If Iniesta was Andresinho, he would´ve won Ballon d´Or|
|Guadalajara 1 Toronto 2 (3-3 agg, 4-2 on pens): Mexican hosts win CONCACAF Champions League|
|Copa Libertadores Review: Palmeiras advance, Nacional claim crucial win|
|I´m the best defender in Serie A, says Inter´s Miranda|
|Real Madrid still relying on Bale – Zidane|
|Ramos: Madrid were expected to win 3-0 but Bayern are difficult|
|Boateng casts doubt over Bayern future|
|Salah a Ballon d´Or contender, says Lovren|
|Muller demands killer mentality from Bayern at Bernabeu|
|Kimmich: Bayern should have beaten Madrid 7-2|
|Heynckes: We gave Real Madrid two goals|
|Wenger intends to ´play in Europe again´|
|Madrid suffered in Munich triumph, says Kroos|
|Isco injury prompted Asensio introduction – Zidane|
|Ronaldo breaks record for wins in Champions League|
|Bayern Munich 1 Real Madrid 2: Asensio seals smash-and-grab win for Zidane´s men|
|Wenger clarifies comment on Arsenal exit ´timing´|
|Boateng injury worry for Bayern and Germany|
|Robben injured in Bayern v Madrid Champions League semi-final|
|Icardi will wait for World Cup dream|
|Oxlade-Chamberlain ´absolutely devastated´ by knee injury|
|Simeone hails Wenger and distances himself from Arsenal switch|
|Madrid bench Benzema and Bale as James starts for Bayern|
|Salah used to have problems in front of goal, says former Basel team-mate Sommer|
|Oxlade-Chamberlain ruled out of World Cup|
|Arsenal´s Bellerin slams Daily Mail as ´click baiters´|
|Mourinho suggests United were ´not prepared to win´ before his arrival|
|Wolves in the clear over Mendes link-up|
|Salzburg first, history later for Garcia and Marseille|
|Leeds owner defends controversial Myanmar tour|
|Henderson: Injured fan´s recovery is the only result that matters|
|Ronaldo sends signed shirt to Manchester United star Rashford|
|This group deserves something special – Wenger wants to exit on a high|
|Vieira ´ready for Europe´ amid reported Arsenal interest|
|Wenger focused on Arsenal despite desire to keep working elsewhere|
|Mourinho has made me a better person, says McTominay|
|Gerard sacked as Barca B coach after woeful winless run|
|Bayern links ´an honour´ for Madrid man Bale|
|Roma ashamed by Liverpool fan attack|
|UEFA ´shocked by vile attack´ on Liverpool fan|
|Campbell tips Vieira and Bergkamp to replace Wenger|
|Courtois to sue former Belgium coach Wilmots|
|Heavyweights Ronaldo and Lewandowski go head to head – Champions League in Opta numbers|
|Copa Libertadores Review: Gabriel leads Santos, Atletico cruise|
|He decides the biggest moments – Wijnaldum hails Salah|
|Roma have some hope, says Monchi|
|Messi? Ronaldo? Salah is world´s best player – Gerrard|
|Liverpool are not Barcelona – Klopp cautious of Roma comeback|
|Liverpool supporter in ´critical condition´ after fan clashes|
|It´s all-inclusive football with Liverpool! - Klopp pleased despite Roma recovery|
|Montella to remain Sevilla coach until end of season|
|Di Francesco: Roma gave up – but if you don´t believe in a comeback, stay at home|
|Klopp accepts Salah substitution sparked Roma fightback|
|Oxlade-Chamberlain may miss World Cup after suffering ´a really bad injury´|