France fought back twice from being behind to beat Belarus 4-2 at the Stadyen Central'ny on Tuesday night.
Belarus frustrated the French team in the first-half as a desperate French side tried to break the deadlock and keep themselves in the reckoning for an automatic qualification spot.
In the 32nd minute the France's worst nightmare came true as Egor Fillipenko took advantage of some poor goalkeeping from Hugo Lloris and headed the ball home.
Belarus continued to frustrate France and at half-time the home side led 1-0.
France were awarded a penalty in the 47th minute as Ribery was brought down by goalkeeper Sergei Veremko. Ribery converted the spot kick to make it 1-1 on the night.
But Belarus were intent on spoiling the French party and the home side regained the lead through Timofey Kalachev, his powerful shot beating a stunned Lloris.
The introduction of Samir Nasri began to change things for France, and they found the equalizer in the 64th minute as Ribery tapped in at the far post to get his second, after good work from Mathieu Valbuena down the right.
France then found their third through Nasri in the 70th minute, after a good run, his shot from the edge of the box took a deflection and beat Veremko.
And three minutes later Veremko made another error, and from a goalmouth scramble Paul Pogba got his first international goal, firing home from close range and securing the win.
Follow us on Twitter: @Soccer_Laduma