David Alaba scored with a stunning free-kick immediately after coming on as a substitute as reigning champions Real Madrid came from behind to beat Almeria 2-1 in their opening game of the season in La Liga on Sunday.
Carlo Ancelotti's side trailed to an early goal by Largie Ramazani away against their promoted opponents, but Lucas Vazquez equalised just after the hour mark.
The winner arrived with 15 minutes remaining at Almeria's Power Horse Stadium, as Alaba strode onto the pitch and curled a free-kick in off the upright after Luka Modric had been fouled just outside the box.
Real were made to work hard for the points against an Almeria side who won last season's second-tier title to return to La Liga after a seven-year absence.
"We had lots of shots on goal but once we got the first goal it made things much easier for us," said Ancelotti.
"I am happy with the way the game went. We were not spectacular but there were lots of things to take into account, like the game on Wednesday and the heat."
At one point it looked like Madrid might suffer a defeat in their opening league game of the season for the first time since 2008, with Ancelotti's decision to rotate his squad not initially paying off. The Italian had made five changes to the line-up that started in Wednesday's 2-0 win over Eintracht Frankfurt in the UEFA Super Cup in Helsinki, when goals by Alaba and Karim Benzema gave the defending European champions the first silverware of the campaign.
Alaba and Modric were among the players dropped to the bench, while close-season signings Antonio Rudiger and Aurelien Tchouameni were handed first competitive starts for their new club.