BRITAIN’S GERAINT THOMAS, wearing the overall leader’s yellow jersey, passes fields of sunflowers during the eighteenth stage of the Tour de France cycling race over 171 kilometers (106.3 miles) with start in Trie-sur-Baise and finish in Pau, France, Thursday. THE ASSOCIATED PRESS

BRITAIN’S GERAINT THOMAS, wearing the overall leader’s yellow jersey, passes fields of sunflowers during the eighteenth stage of the Tour de France cycling race over 171 kilometers (106.3 miles) with start in Trie-sur-Baise and finish in Pau, France, Thursday. THE ASSOCIATED PRESS

PAU, France

Arnaud Demare was rewarded Thursday for hauling his muscular frame over the Alps and through the Pyrenees.

Geraint Thomas, meanwhile, is preparing to cement his hold on the yellow jersey in Friday’s final mountain test of the Tour de France.

After many of his competitors were unable to get through the mountains, Demare took advantage by dominating a mass sprint in Stage 18.

It marked the first victory by a French team, Groupama FDJ, in this year’s race.

Demare said he was motivated by an accusation on social media from Andre Greipel, a top German sprinter, who alleged that Demare held on to his team car on the way up the grueling Col du Portet in Stage 17.

Demare finished Wednesday’s stage second to last but managed to avoid the time cut as thousands of French spectators cheered him on.

Greipel, who also quit in Stage 12, later apologized on Twitter, saying he had relied on “incorrect” information.

Demare, who failed to make the cut on a climb in the Alps last year, had time to celebrate as he crossed the line with his arms wide open ahead of fellow Frenchman Christophe Laporte.

Alexander Kristoff of Norway crossed third in the same time.

After two grueling days in the Pyrenees, Thomas was able to enjoy his seventh day in the yellow jersey during the less challenging 171-kilometer (106-mile) leg from Trie-Sur-Baise to Pau, which featured only two minor climbs and a flat finish.

Thomas remained 1 minute, 59 seconds ahead of Tom Dumoulin with the Welshman’s Sky teammate and four-time champion Chris Froome third, 2:31 behind.

Only two challenging stages remain — a lengthy leg through the Pyrenees on Friday including three major climbs, then a technical individual time trial on Saturday — before the mostly ceremonial finish on the Champs-Elysees in Paris on Sunday.

Stage 19 starts in the pilgrimage town of Lourdes and takes the peloton over legendary climbs like the Col du Tourmalet and Col d’Aubisque.

Perhaps a bigger worry for Thomas and Froome concerns the unruly fans who have consistently affected this Tour by spitting at riders — or even reaching out to grab them.

One fan who reached over the barriers nearly took Thomas down on Wednesday

“I thought it was maybe an accident, just maybe an overly exuberant fan,” Thomas said. “But when I got back to the hotel and was showed the pictures it was obviously something else. It’s not nice. It’s not what you want.”

On a warm day in southern France, Stage 18 took riders through the vineyards of Madiran to the city of Pau, the birthplace of 16th-century King Henri IV. It was the 70th time that the Tour passed through Pau, which first hosted the race in 1930.

Five riders — Guillaume Van Keirsbulck (Wanty- Groupe Gobert), Mathew Hayman (Mitchelton-Scott), Luke Durbridge (Mitchelton Scott), Niki Terpstra (Quick-Step Floors) and Thomas Boudat (Direct Energie) — were involved in an early breakaway. The sprinters’ teams never let them get much more than two minutes ahead, and they were caught with 16.5 kilometers to go.

Otherwise, it was a very calm stage except for a minor crash involving Stage 17 winner Nairo Quintana and British rider Adam Yates midway through the route. Both riders got back on their bikes and continued without apparent problems.

Comments are not available on this story.