Portugal have finished runners-up of Group B at the World Cup after drawing Iran 1-1 in Saransk, and will play Uruguay, the winners of Group A, in the last 16 on Saturday, but almost lost at the end.
Portugal took the lead in the last minute of the first half, Ricardo Quaresma curling in a superb shot. Six minutes into second half they were awarded a penalty for a foul on Cristiano Ronaldo, as a result of VAR. But the penalty was too close to the goalkeeper, Alireza Beiranvand.
Ronaldo was then investigated for a possible red-card offence by VAR but escaped with a booking.
Then, in added time, Iran were awarded a penalty on VAR for handball by Cédric Soares. It was converted by Karim Ansarifard.
Second later, Iran had a chance to win it, but Mehdi Taremi sent his shot into the side-netting when he should have scored.