‘‘Sagan is a guy who can often climb with the best climbers and sprint with the best sprinter, so I’m really thrilled to be able to beat such a classy rider,’’ Gerrans said. ‘‘I surprised quite a few people a little bit today, including myself.’’

Gerrans shouldn’t be too surprised, though, as he had prepared well.

‘‘This is a stage that I’ve been targeting for quite some time,’’ he said. ‘‘We were down here in Corsica last weekend doing a recon and scouting the finishes and it all paid off today.’’

Although Gerrans has clinched a stage win on all three Grand Tours, his previous stage win on ‘‘Le Tour’’ was five years ago — when it actually finished in the northern Italian ski resort of Prato Nevoso.

He was slowing up Monday but just managed one last effort to throw his bike forward the way a 100-meter runner would dip for the line.

‘‘I wasn’t sure if I had won — a half-wheel length?’’ Gerrans said. ‘‘All went perfectly well, my team took great care of me after the last climb.’’

He will also need to thank his countryman and teammate Simon Clarke, who placed himself in the early breakaway.

‘‘It was the team plan. I was brought to the Tour de France to join breakaways, so I made sure I did my job,’’ Clarke said. ‘‘I was quite relaxed today and when you’re relaxed it means you have good legs.’’

Sagan is in the coveted sprinter’s green jersey he is expected to contest with British sprinter Mark Cavendish, who is 49 points behind.

‘‘I’m a bit sad about the stage, but the team’s objective is to get the green jersey and that’s what we have,’’ Sagan, a Slovak, said through a translator. ‘‘I don’t feel at my best yet. But the Tour is long and there are still a lot of good stages to come.’’

Bakelants, the winner of Sunday’s second stage, finished 19th.

‘‘The team worked very hard for me, and I’m very happy to keep the yellow jersey,’’ Bakelants said. ‘‘It was a very hot day and the conditions were not easy.’’

Gerrans clocked about 3 hours, 40 minutes.

It was the last of the trio of Corsican stages before the race heads to mainland France for Tuesday’s team time trial in Nice, where race favorite Chris Froome’s Sky team is expected to challenge for the win.

‘‘There are some strong teams out there,’’ Froome said.

With the Tour heading through Corsica for the first time, some fans got their first glimpse of the showcase race — and made a point of getting noticed. One defied the heat to dress up in a full Napoleon outfit, saluting from the roadside.

Further on, a man held up a Coriscan flag as he rode on horseback alongside the rolling pack.

BostonGlobe.com complimentary digital access has been provided to you, without a subscription, for free starting today and ending in 14 days. After the free trial period, your free BostonGlobe.com digital access will stop immediately unless you sign up for BostonGlobe.com digital subscription. Current print and digital subscribers are not eligible for the free trial.

Thanks & Welcome to Globe.com

You now have unlimited access for the next two weeks.

BostonGlobe.com complimentary digital access has been provided to you, without a subscription, for free starting today and ending in 14 days. After the free trial period, your free BostonGlobe.com digital access will stop immediately unless you sign up for BostonGlobe.com digital subscription. Current print and digital subscribers are not eligible for the free trial.