Gareth Bale needed less than a minute to help Real Madrid reach the FIFA Club World Cup final after his team faced a potential shock elimination from the tournament.
Bale scored with his first touch after coming on as a substitute in the 81st minute as Real Madrid came from behind to beat Emirates club Al Jazira 2-1 in Wednesday's semifinal.
Madrid will try to win its third world title in four seasons when its faces South American champion Gremio of Brazil on Saturday.
The match had two goals disallowed by video review, one for each team. There was confusion when Madrid's first-half goal was ruled out by a decision that took a few minutes before the Video Assistant Referee became involved.
Madrid struggled early and allowed the local league winners to open the scoring with a goal by Brazilian forward Romarinho just before halftime.
But Cristiano Ronaldo equalized early in the second half and Bale netted the winner less than a minute after replacing Karim Benzema.
The Wales forward, coming off a series of injuries, scored with a low left-foot touch from the center of the area after a pass by forward Lucas Vazquez, who had also come off the bench.
"It was great to be able to score, but the most important thing was the victory," said Bale, adding that he's still not at 100 per cent. "It's been a long wait, I've had to be patient."
He has played only 11 matches with Madrid this season because of lingering muscle problems.
Madrid, which fielded its top players, was in control from the start but made a series of mistakes in front of goal and couldn't capitalize on its numerous chances. Al Jazira goalkeeper Ali Khaseif made several difficult saves before being substituted with an apparent injury early in the second half.
Madrid appeared to have opened the scoring with a header by midfielder Casemiro in the 30th minute. Brazilian referee Sandro Meira Ricci initially disallowed the goal, then said it counted and carried the ball back toward the center circle for the restart, only to eventually rule it out again after requesting a video review. He signaled that his final decision, made nearly three minutes after the goal, was based on Benzema being offside.
The hosts took advantage of Madrid's early struggles and opened the scoring in a counterattack just before halftime.