A Wahbi Khazri goal was enough for Tunisia to shock France, but the upset was not enough for the north Africans to make it through to the second round.
Khazri steered home a 58th-minute winner despite the attention of a horde of defenders for only Tunisia’s a third win at six World Cups.
France, who made nine changes for this match from the team that beat Denmark and had already booked their place in the knockout stages, were still able to finish top of Group D on goal difference from runners-up Australia, who beat Denmark 1-0 at the same time.
France now take on the runners-up in Group C – a group that contains Argentina, Poland, Saudi Arabia and Mexico – which will be concluded later on Wednesday.