Cristiano Ronaldo scored a dramatic late free-kick to complete his first World Cup hat-trick and rescue a point for Portugal after a thrilling 3-3 draw against Spain in Sochi.
Spain, who lost their manager Julen Lopetegui on the eve of the tournament, were seemingly heading towards victory after coming from behind twice to lead 3-2 with just minutes remaining, but Ronaldo, who became the first player to score in eight consecutive major tournaments, denied them right at the death on Friday night.
Earlier, the Real Madrid forward opened his Russia 2018 account from the penalty spot in the fourth minute before Diego Costa fired Spain level in the 24th minute.
David de Gea's error just before half-time handed Ronaldo (44) his second of the match and Portugal the lead at half-time but after the break, Spain hit back again through Costa (55) before Nacho's thunderbolt (58) gave his side the lead.
Fernando Hierro, who took over from Lopetegui, was seemingly heading for a winning start to his reign until Ronaldo once again grabbed all the headlines.
The news from the Spain camp had dominated the build-up to this game but Ronaldo shifted the attention back onto him as early as the fourth minute as his stepover drew a foul from Nacho to win a penalty. The Real Madrid striker got up to convert emphatically past De Gea from the spot.
Spain responded well to going behind and they hit back through Costa, who created a yard for himself ahead of Jose Fonte before firing past Rui Patricio and into the bottom corner from the edge of the penalty area.
Minutes later, Isco was inches away from giving Spain the lead. His powerfully struck shot beat Patricio but the ball crashed off the underside of the crossbar and down onto the goal line, with technology showing it had not crossed the line.
Hierro's side were starting to dominate the ball, with Isco their main threat. The Real Madrid midfielder pulled the ball back for Andres Iniesta but his shot flashed just wide of the far post.