Portugal and France played out an entertaining 2-2 draw in their last group match of the ongoing EURO 2020 tournament in a match played on Wednesday night.
A brace each from Cristiano Ronaldo and Karim Benzema settled the entertaining clash, which was staged at the Puskas Arena in Hungary.
Les Blues finished top of the group, with Germany finishing second, while defending champions Portugal, qualified as one of the four best number 3s.
At the Puskas Arena, it was Portugal who made the first attempt on goal with six minutes on the clock when Cristiano Ronaldo rose highest to meet a Renato Sanches ball, but the Juventus forward's header was easily saved by Hugo Lloris.
France's first chance arrived in the 16th minute when Pogba slid the ball through for Kylian Mbappe, whose first-time shot was well-read by Rui Patricio.
Nervy defending by Raphael Varane almost gifted Portugal a goal in the 20th minute, but Ronaldo's header went inches out wide.
Portugal then got the chance to get the opener in the 27th minute when Lloris got off his line to clear a lofted ball from a free-kick and caught Danilo in the process, giving the referee no choice but to award a penalty.
Ronaldo then stepped up to send Lloris the wrong way for his first goal against France, a strike that temporarily put them at the top of the group.
France then leveled on the stroke of half-time when Mbappe went down from a Nelson Semedo challenge, allowing Karim Benzema to score his first goal for France in five years.
France came back for the second half sharper of the two sides and took the lead just two minutes after the whistle.
Paul Pogba found Benzema with a delightful pass, with the Real Madrid forward finishing with a low shot that went in via the post.
France were forced to make a change a few minutes later when Luca Digne picked an injury and was replaced by Adrien Rabiot.
Their lead however lasted less than a quarter an hour as Portugal got yet another penalty after Kounde was adjudged to have handled the ball.
Ronaldo, once again, stepped up to casually bury it in for his 109th national goal.
There was no winner as both teams heald on for a point, which nevertheless, ensured their passage.
In the other group match, Leo Gortezka scored a late equalizer as Germany drew 2-2 against Hungary to make it to the last 16.
Adam Szalai gave the Hungarians the lead after just 11 minutes when he got to the end of Roland Sallai to head low past Manuel Neuer.
Matthias Ginter got the only clear chance for Germany in the opening half, but the goalkeeper made a timely save to keep his side in the game.
Sallai then came close to adding a second in the 64th minute, but his ferocious shot from a free-kick hit the left post of the goal as Germany survived.
The lively Kai Havertz pulled his side level in the 66th minute after Mats Hummels peeled away from his marker to connect with a free-kick ball, finding the Chelsea forward a few yards from the goal line and he nodded it in.
Astonishingly, Hungary restored their lead right from the re-start as Andras Schafer headed home a Szalai ball for a 2-1 lead.
Goretzka then scored with six minutes to go to ensure his side book a date with England in the next round.