Shoja Khalilzadeh's goal is ruled out by VAR in injury-time denying Iran automatic qualification into the round of 32, meaning they will have to wait on other results to see if they go through as one of the best third-placed sides.
Goalkeeper Fernando Muslera's mistake gifts Alex Baena the only goal of the game, as Spain defeat Uruguay to send Marcelo Bielsa's side out of the World Cup in the group stage.
Cape Verde deliver a valiant performance to earn their third draw of the group stage, a result that means they qualify for the last 32 in their World Cup debut while Saudi Arabia crash out.