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 equalized 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 was 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.