Now tied on points and goal difference with fellow leaders Portugal, the Roja know they will have to better Ronaldo's men's result to take top spot, as the Selecao play simultaneously against Iran. While luck favoured courageous Iran as they emerged the victor against Morocco, credits to Aziz Bouhaddouz's own goal in the stoppage time, Spain had to comprehend Cristiano Ronaldo's hat-trick to fight out a draw.
The second half saw Spain attack with more intent but it was a stroke of luck that saw them take the lead in the 54th minute.
Diego Costa's fortuitous goal in the second half was enough secure three points against a stubborn Iran side, who had an equaliser ruled out following a VAR review.
Spain will face Morroco in their final group stage game on Monday, June 25 while Iran will face Portugal on the same day.
Chris Fox: Ronaldo's hat-trick and Kane's last-minute victor have just been overshadowed by the Iran throw-in as the moment of World Cup so far. Collective sighs ran through the La roja Camp and fans in stands as the goal was nullified and they were confirmed to be still leading the game.
TWENTY seconds left on the clock, a goal down against Spain with World Cup progression on the line and you have a throw in.
Iran's resistance was almost broken twice in quick succession at the start of the second period. If you don't have cable, you can stream it via Hulu with Live TV or fuboTV.
Diego Costa scored a fine brace in the opener and is likely to start again against Iran.
And while goalkeeper Alireza Beiranvand recognises few will fancy Iran to add to their current points tally, he is in a defiant mood and insists Spain will be in for a battle. The Atletico Madrid striker showed his individual class and poaching instincts with both goals and will be charged with breaking the deadlock against a mean Iranian defence.
"We played a great game against Portugal and today the opponent was a lot more defensive".
When does the FIFA World Cup 2018 Match-20 between Iran vs Spain start?
It promises to be an interesting game as Iran and Spain meet for the first ever time.