France needed last-gasp goals from Antoine Griezmann and Dimitri Payet to snatch a 2-0 win over Group A minnows Albania and secure their passage to the Round of 16.
The hosts looked anything but Euro 2016 favourites as they struggled past a side ranked 42nd in the world, and were very nearly on the end of a major upset with Albania rattling a post.
But just as Albania looked set to register their first ever point at an international tournament, substitute Griezmann came to France’s rescue with less than a minute to go.
Then in stoppage time West Ham star Payet, back on his old Marseille stomping ground, curled in his second goal in two matches to secure their place in the knockout stages.
With 90 minutes almost up Albania’s rearguard finally slipped up, leaving Griezmann unmarked to head home Adil Rami’s cross.
Then Payet repeated his trick against Romania on the opening night when he jinked into the box and curled home to secure a victory which was far more hard-earned than the scoreline would suggest, but they are now through to the knock-out stages.