AVILA BEACH, Calif. (AP) — Slovakia’s Peter Sagan surged in the short final uphill sprint Wednesday to win the windy fourth stage of the Tour of California and close in on overall leader Tom Skujins of Latvia.

After finishing second in the first three stages, Sagan — the Tinkoff-Saxo rider who has four Tour de France stage victories — raced to his 12th career stage victory in the California event. He finished the 107.6-mile leg from Pismo Beach to Avila Beach in 4 hours, 6 minutes, 56 seconds.

READ MORE: USC Set To Hire Lincoln Riley As Head Coach

“I never looked back,” Sagan said. “I was just in the group, and I trust my teammate. He bring me on the front for the last corner left.”

Skujins, the American Hincapie Sportswear rider who won the third stage, had a 22-second lead over Sagan after finishing 67th in the main field. Sagan gained 10 bonus seconds for the stage win.

“It was pretty big for us,” Skujins said. “It was pretty hard because it was windy, but we kept it in check, and Quick-Step did a lot of work for us, which was awesome. It worked out for us, so all is well. “We’ll see what happens with the time trial and the weather.”

Rain is predicted for Stage 5 and current snow in Big Bear Lake may force the relocation of the Stage 6 individual time trial for the men’s field and the women’s invitational time trial scheduled the same day.

Canada’s Rob Britton of SmartStop, remained third overall– 43 seconds back.

Drapac rider Wouter Wippert of the Netherlands was second in the stage, about two bike-lengths behind. Britain’s Mark Cavendish of Etixx-QuickStep, the winner of the first two stages, was third.

READ MORE: Curry Has 33 Points, Warriors Beat Clippers For 8th Straight

Sagan came around the final corner in sixth position, but he made his sudden move with about 150 meters left and swiftly passed Italian Daniel Oss who had moved into a solo lead in the final mile.

“Mark Cavendish was behind me, maybe I did some turns better,” said Sagan, who did two small “wheelies” as he crossed the line. “And from the last corner I just sprinted. I’m very happy.”

Sagan, who had not won a race since March 16, claimed 10 races last year. He was criticized by his team owner earlier this season.

An early stage breakaway group of five built as much as a 3:10 advantage. The main field steadily narrowed it deficit to 45 seconds with about 20 miles left.

American Greg Daniel bolted into a solo breakaway and stretched his margin to 30 seconds with about 12 miles left. But the main field, which earlier caught the rest of the breakaway leaders, absorbed Daniel three miles later.

The eight-day event continues Thursday with 95.7-mile ride from Santa Barbara to Santa Clarita.

MORE NEWS: 4 Arrests Made In Connection With Lakewood Flash Mob Burglary Of Home Depot

(© Copyright 2015 The Associated Press. All Rights Reserved. This material may not be published, broadcast, rewritten or redistributed.)