Geraint Thomas is set to win the Tour de France on Sunday after protecting his yellow jersey in the stage 20 time trial from Saint-Pee-sur-Nivelle to Espelette.

Thomas finished the stage with a lead in yellow of one minute and 51 seconds after finishing third on the road.

His closest rival in the general classification, Tom Dumoulin, won the stage by one second from Chris Froome and 14 seconds from Thomas, but the world time trial champion never looked like putting Thomas' comfortable cushion in danger.

Ireland's Dan Martin finished 34th in the time trial, 2:40 behind Dumoulin, but remains on track for a top ten finish as he retained his eighth place in the general classification. 

Thomas will become the third British winner of the race, joining  radley Wiggins and Froome, and it will mean the trio have won six of the last seven editions, all in Team Sky colours.

Froome's performance was enough to put him back on the podium and he will finish third overall, having overhauled LottoNL-Jumbo's Primoz Roglic on the stage. 

Froome had started the Tour looking for a record-equalling fifth Tour title and seeking a rare Giro-Tour double, but he found that attempting to win a fourth consecutive Grand Tour was a step too far.

Thomas emulates Wiggins in converting himself from an Olympic team pursuit champion into the winner of the world's biggest road race.

The 32-year-old had never before finished in the top 10 of a Grand Tour. In his only previous serious attempt to win one, he was forced to withdraw following a crash midway through last year's Giro d'Italia.