Portugal booked their spot in the last-16 stage of the 2018 World Cup as Group B runners-up courtesy of a 1-1 draw with Iran in Saransk.
Cristiano Ronaldo missed a penalty for the Euro 2016 winners, but a first-half Ricardo Quaresma effort looked to be securing all three points for Fernando Santos's team.
Iran were incredibly awarded a penalty in the 93rd minute following intervention from VAR, however, and Karim Ansarifard converted from the spot to set up a grandstand finish.
Portugal looked to have won the group entering the final moments, but Iran's equaliser and a leveller for Spain against Morocco means that Santos' side will take on Uruguay in the round of 16 on June 30, leaving Spain to face Russia on July 1.
Read how it all unfolded in Sports Mole's minute-by-minute live commentary of the action below.
IRAN: Beiranvand; Hajsafi, Pouraliganji, Hosseini, Ramin; Taremi, Omid, Ezatolahi, Amiri, Jahanbakhsh; Azmoun
PORTUGAL: Patricio; Cedric, Pepe, Fonte, Raphael; Mario, W Carvalho, Adrien Silva, Quaresma; Andre Silva, Ronaldo
© Reuters
🏟️🇮🇷🇵🇹#IRNPOR pic.twitter.com/McCcI4clFi
— FIFA World Cup 🏆 (@FIFAWorldCup) June 25, 2018
#IRNPOR // The teams are in! pic.twitter.com/tmsdH1iunk
— FIFA World Cup 🏆 (@FIFAWorldCup) June 25, 2018
So, here's the situation in Group B...
— FIFA World Cup 🏆 (@FIFAWorldCup) June 25, 2018
Which pair do you think is going to qualify? #IRNPOR#ESPMAR