Tunisia registered a shock victory after France had a goal ruled out by the VAR in the final minute of injury time.
They did not qualify for the last 16 of the World Cup.
The VAR decision meant that the Tunisia captain's brilliant first-half goal proved to be the winner.
Tunisia's hopes of progressing were dashed by Australia's victory over the Danes in the other match in the group.
France are through to the last 16 as group winners having already secured qualification.
Despite their failure to progress, Tunisia captain Khazi produced the moment fans had been waiting for - a goal at this World Cup - when he drove to the edge of the box.
There was a lot of emotion from the Tunisia fans at the stadium, while the Tunisia substitute sprinted onto the pitch in a moment of pure joy.
When news of Australia's lead began to spread through the stadium, supporters checked their phones for updates from the other match in the group.
France, who had already qualified for the next round, lacked quality in their performance.
The two forwards were brought on to try and get back into the game.
Despite loud jeers and whistling from Tunisia fans, they had an impact even though they wanted to stop them.
The winner of Group C will face the runner-up in the last 16 on December 4.
Tunisia has yet to make the knockout stages of the World Cup for the first time.
Tunisia knew they needed to win the game to progress, and they started with a lot of intent.
Eduardo Camavinga needed support from Ibrahima Konate when he was overloading out wide.
The support for Tunisia was far greater than France's and the majority of them celebrated when the volley flew past the goalkeeper, only to be ruled out for an obstruction.
As the first half wore on, Tunisia fans' impatience began to show - though their support remained relentless - as chance after chance came, but goalkeeper Mandanda did not look like he had conceded the game.
Then a wonderful moment from Khazri opened up space for himself on the edge of the box and his strike beat Mandanga in the bottom corner.
Tunisia fans were full of hope as they were heading into the last 16 but two minutes later, Australia's goal took it away from them.
France were on top of their game in the second half because Deschamps didn't waste a lot of time bringing on the two superstars.
Tunisia had a number of corners late in the game, but they were unable to get a goal.
The referee went to the pitchside monitor to watch the VAR and the goal was ruled out.
Get the latest results and goal notifications for any team at the Fifa World Cup by downloading the BBC Sport app: Apple - Android - Amazon
You can get a daily dose of the World Cup on the radio.