Portugal sealed progress to the last 16 of the World Cup after a 1-1 draw against Iran on Monday night - but it was by the skin of their teeth.
A stunning effort from Ricardo Quaresma at the end of the first half looked to be the decisive goal in the tense Group D affair, before Iran equalised from the penalty spot in stoppage time.
The Portuguese side set the tone for the game from early on, with Cristiano Ronaldo's early shot in the third minute - before Joao Mario firing over after a rapid attack from Portugal.
8:50pm#IRN 0-1 #POR #ESP 1-2 #MAR
— Match of the Day (@BBCMOTD) June 25, 2018
Portugal winning the group.
*Successful VAR reviews in both games*
8:53pm#IRN 1-1 #POR #ESP 2-2 #MAR
Spain win the group. VAR madness in the #WorldCup pic.twitter.com/ERZ6N99pNz
Joao Mario then fired over after a quick attack from Portugal, before
With less than ten minutes to play before the end of the match, Iran
Just as Portugal manager Fernando Santos was preparing his half time team talk, Ricardo Quaresma produced a moment of magic in the last minute of the half to send the European champions in with a lead at the break.
GOOOOOOOOOOAAAAAALLLLL!!!!!
— 90min (@90min_Football) June 25, 2018
Ricardo Quaresma bends in an absolute beauty with the outside of his foot to put #POR 1 up on the stroke of half time!#IRNPOR pic.twitter.com/3QaTcVeLFz
After a lovely interchange with Adrien Silva outside the box, Quaresma curled the ball into the top corner with the outside of his right boot - certainly one that will be on the 'Goal of the Tournament' shortlist.
Portugal were awarded a penalty in controversial fashion towards the start of the first half as Cristiano Ronaldo was fouled in the box. After initially waving away any appeals for a penalty, a word in the referee's ear saw him quickly run over to the touchline.
He subsequently awarded a penalty, which Cristiano Ronaldo took - in a bid to catch up with Harry Kane in the race for the golden boot.
Cristiano Ronaldo is the first #POR player in history to miss a penalty at the #WorldCup pic.twitter.com/6YdgMeXYCS
— Match of the Day (@BBCMOTD) June 25, 2018
The five time Ballon d'Or winner stepped up, and stunned the football world into silence as he saw his poor penalty saved comfortably by Beiranvand in the Iranian goal.
As the second half grew on, the game became very much similar to the majority of the first half. That was until, however, there was another controversial VAR moment as the referee decided to award a penalty to Iran after much deliberation on the touchline.
Karim Ansarifard dispatched his spot kick right into the top corner to see Portugal progress in second place, securing an exciting last 16 tie against Uruguay.
#IRNPOR // The teams are in! pic.twitter.com/tmsdH1iunk
— FIFA World Cup (@FIFAWorldCup) June 25, 2018