Two stoppage-time goals from Cristiano Ronaldo saw Portugal come from behind to snatch victory from the hands of Egypt.
The visitors looked destined to pick up a memorable win over the current European champions after Liverpool star Mohamed Salah put them ahead in the 56th minute.
But then Real Madrid’s most famous galatico joined the party.
Ronaldo first rose unchallenged to score from Ricardo Quaresma’s left-flank cross in the second minute of time added on.
Two minutes later, Ronaldo powered a header low into the right corner of the goal from Quaresma’s free kick on the right.
The winning goal was confirmed 90 seconds later after a video review for a possible offside.