Primoz Roglic has lost his leading position in the general classification of the Tour de France in the penultimate stage to his fellow countryman Tadej Pogacar.

The Slovenian leader of Jumbo-Visma lost his yellow jersey in a nerve-racking climb time trial, so Pogacar is almost certain of the overall victory.

The Tour will end on Sunday with a flat stage over 122 kilometers with the traditional finish on the Champs-Elysées in Paris.

The chance that that ride will cause shifts in the top of the general classification is nil.

Roglic started the 36.2 kilometer long chrono race from Lure to the top of La Planche des Belles Filles with a lead of 57 seconds over Pogacar.

The 21-year-old rider of UAE Team Emirates more than made up for that gap.

Halfway through, Pogacar was already 37 seconds faster than Roglic and on the final climb he made the difference bigger and bigger.

In the end, he kept his fellow countryman 1 minute and 56 seconds behind, giving him a 59 seconds lead in the general classification.

Dumoulin finishes second in the time trial

With a time of 55 minutes and 55 seconds, Pogacar was more than a minute faster than the competition.

Tom Dumoulin finished second in 1 minute and 21 seconds and Richie Porte set the third fastest time.

Roglic had to settle for fifth place in the time trial.

He also had to tolerate his teammate Wout van Aert.

At 21, Pogacar becomes the youngest post-war winner of the French cycling round.

He also ensures that Slovenia becomes the fourteenth country with a Tour victory.

This puts the country on a par with Denmark, Germany, Ireland, Colombia and Australia.