DOHA, Qatar (AFP) -- Kylian Mbappe scored twice, including a late winner, as holders France edged Denmark 2-1 on Saturday to become the first team to reach the last 16 of the World Cup.
A potent French side knew a second victory in as many Group D outings would take them through to the knockout phase and they were well worth the lead that Mbappe gave them when he opened the scoring at Stadium 974 just after the hour mark.
However, Andreas Christensen soon equalised for the Danes and Les Bleus needed Mbappe to deliver again in the 86th minute as he turned in Antoine Griezmann's cross to puncture the Danish resistance once and for all.
Having scored four during France's victorious 2018 campaign and one against Australia, Mbappe now has seven goals in nine World Cup appearances.
Didier Deschamps's side now have the luxury of going into their final group game against Tunisia knowing a draw will guarantee them top spot, and even a defeat may not prevent them finishing first.
Having come roaring back to batter Australia 4-1 in their opening match in Qatar, France were more wasteful in front of goal on this occasion but at least they did not come unstuck against opponents who have caused them problems before.
They were reigning champions when a defeat to the Danes knocked them out of the 2002 World Cup, while the sides played out the only goalless draw in 2018.
More recently Kasper Hjulmand's side beat France home and away in this year's Nations League, and it seemed that Deschamps had learned lessons from those two encounters.
If France were a shadow of their usual selves in Copenhagen in September, they were much better in this match, played in a pop-up stadium made of shipping containers on Doha's waterfront.
Deschamps changed three of his back four, with Theo Hernandez at left-back in place of his injured elder brother Lucas and Raphael Varane coming in for his first game in over a month.
- Pace and power -
But the French attack was untouched from the Australia game.
If Olivier Giroud took the headlines then, here Ousmane Dembele was electric at times on the right, Griezmann excelled in an advanced midfield role, and Mbappe made the difference.
France's pace, power and passing were all too sharp for the Euro 2020 semi-finalists who were lucky to go in level at half-time.
There were some French appeals for a red card in the 19th minute when Mbappe burst onto a beautiful threaded through ball by Griezmann only to be hauled down by Christensen, but the Danish defender escaped with a yellow.
The holders' best chances in the first half came from headers by Varane and Adrien Rabiot, but when Mbappe turned away from Joachim Andersen just before the hour mark and accelerated away, it was a sign that a goal was coming.
His shot was turned behind by Kasper Schmeichel, and Griezmann then wasted a great chance shortly after, but in the 61st minute Mbappe did score.
The Paris Saint-Germain superstar linked up brilliantly with Hernandez on the left and met his teammate's cutback with a shot that beat Schmeichel thanks to a deflection off Christensen.
Denmark had offered little but suddenly they were level midway through the second half as Andersen nodded down a corner and his fellow defender Christensen headed home.
Hugo Lloris was then forced into a key save to deny Jesper Lindstrom and Martin Braithwaite grazed a post as Denmark threatened to turn the game completely on its head.
That would have been extremely harsh on France, even if they could only really have themselves to blame for not making more of their chances.
But Mbappe was not to be denied as he stole in front of Rasmus Kristensen at the back post with four minutes left to meet Griezmann's cross with his thigh for his 31st international goal.