Hungary and Portugal played out to an entertaining 3-3 draw which meant both teams booked their places in the last 16 at Euro 2016.
Cristiano Ronaldo scored a brace while Nani got the other goal for Portugal as they came from behind three times against a strong Hungarian outfit.
Zoltan Gera and Dzsudzsak (2) scored Hungary’s goals which means they will either play Belgium, Sweden or Republic of Ireland in Toulouse on Sunday.
As for Portugal they finished as one of the third best place team which means they will play Croatia in the Last 16.
In the other group game Iceland scored a late winner deep into stoppage time to beat Austria 2-1 which means they will play England in the last 16.
Former Fulham player Zoltan Gera put Hungary ahead after 19 minutes with a stunning half-volley from 25 yards to leave Portugal in shock.
Nani of Portugal had other ideas and just before half time he levelled the scores following a fine through ball by Ronaldo.
Into the second half Hungary struck again and it came from a free kick. It was Dzsudzsak who scored a deflected free kick off Andre Gomes shoulder past the wrong footed Rui Patricio.
Then here came Ronaldo’s moment as he became the first player to score at four European Championships as he flicked Joao Mario’s right wing cross past Kiraly into the bottom left corner to make the scores 2-2.
But then again Hungary were back in the lead for the third time in the game and it was that man again Dzsudzsak who scored again for Hungary hitting a left footed shot from just inside the area past Patricio all be it from another deflection off Nani.
Portugal and Ronaldo weren’t finished yet as he once again equalised as Joao Mario’s fine ball found the head of Ronaldo who glanced a header home from eight yards to make it 3-3.
Hungary almost won this pulsating game and it was Gergo Lovrencsics who crossed a ball to Elek and his first time shot hit the post with the scores at 3-3.