Spain forward Diego Costa scored the only goal of the Group B game nine minutes after the break. The goal was extremely unfortunate for Iran, with a defensive clearance hitting Costa and the ball rebounded past the goalkeeper.

Iran midfielder Saeid Ezatolahi Afagh thought he had equalized midway through the second half. However, it was later canceled out for offside, after the referee consulted the video assistant referee system.

The result means Spain and Portugal are level at the top of Group B with four points, while Iran are a point further back on three. Morocco are bottom of the group without a point and have been knocked out of the tournament. 

Spain will face Morocco, and Iran will take on Portugal in their final group games on 25 June.