2018 World Cup
Result: Portugal 3-3 Spain
Date: 15 June 2018
Venue: Fisht Olympic Stadium
Click through the gallery to see all highlights of the epic clash.
Three minutes later, Spain went agonisingly close to taking the lead when Isco rattled the crossbar with a powerful volley that left Rui Patricio helpless.
However, Portugal restored their lead two minutes before the break when David de Gea failed to hold on to a routine strike from Ronaldo that trickled into the back of the net.
Spain were level 10 minutes into the second half, as Sergio Busquets' header back across goal was turned home by Costa for his second on the night.
The turnaround was complete in the 57th minute when Nacho, who gave away a penalty in the first half, found the back of the net with a stunning volley from 20-yards out.
Portugal responded with a double change as Joao Mario and Ricardo Quaresma were introduced, while Spain threw on Thiago Alcantara for Iniesta.
Fernando Santos' last throw of the dice saw him introduce AC Milan forward Andre Silva for the final 10 minutes as they pushed for an equaliser.
Selecao eventually leveled matters with three minutes remaining as Ronaldo completed his hat-trick by firing home a superb free-kick that left De Gea with no chance.
As a result, Iran now top Group B while Portugal and Spain sit in second and third respectively. Morocco occupy fourth spot,