By virtue of the thrilling Group F results - including Iceland's last-gasp 2-1 win over Austria - the Seleccao progressed to the Round of 16 as one of the four best third-place finishers. They will face Croatia on Saturday in Lens.
Ronaldo's second-half performance erased the salty memory of his first two disappointing showings at Euro 2016. The Hungarians opened the scoring in the first half, only to watch Ronaldo set up Nani's initial equaliser towards the end of the 45 minutes.
Then Ronaldo went into overdrive.
His spectacular back-heel flick put Portugal back on level terms in the second, and, after watching his country allow a third goal, the Real Madrid star headed in yet another equaliser.
Through it all, he became the first player to score in four separate European Championships. He's also the reason Portugal still has a chance.