Daniel Martin held of his rivals on an uphill climb to the finish line to win the third stage of the Spanish Vuelta on Thursday and close in on defending champion Primoz Roglic's overall lead.

Martin clinched the victory with a strong push in the final meters (yards) of the 166-kilometer (103-mile) hilly stage from Lodosa to Vinuesa. The win moved him to within five seconds of Roglic, who finished second on the stage. Richard Carapaz was third and is 13 seconds off the overall lead.

More Images
Jumbo's Primoz Roglic, red shirt leader of La Vuelta, wears a face mask to prevent the spread of the coronavirus as he warms up before the third stage of La Vuelta between Lodosa and La Laguna Negra Vinuesa, in Lodosa, northern Spain, Thursday Oct. 22, 2020. (AP PhotoAlvaro Barrientos)

Daniel Martin held of his rivals on an uphill climb to the finish line to win the third stage of the Spanish Vuelta on Thursday and close in on defending champion Primoz Roglic's overall lead.

Jumbo's Primoz Roglic, left, red shirt leader of La Vuelta, wears a face mask to prevent the spread of the coronavirus while preparing before the third stage of La Vuelta between Lodosa and La Laguna Negra Vinuesa, in Lodosa, northern Spain, Thursday Oct. 22, 2020. (AP PhotoAlvaro Barrientos)

Marc Soler, the second-stage winner on Wednesday, needed a bike change near the end, while Esteban Chaves also faced mechanical difficulties.

Jumbo's Primoz Roglic, left, red shirt leader of La Vuelta, wears a face mask to prevent the spread of the coronavirus while preparing before the third stage of La Vuelta between Lodosa and La Laguna Negra Vinuesa, in Lodosa, northern Spain, Thursday Oct. 22, 2020. (AP PhotoAlvaro Barrientos)

The Vuelta is taking place amid tight health restrictions as Spain recently endured a surge in coronavirus cases. The race was postponed from earlier in the year because of the pandemic.

Jumbo's Primoz Roglic, left, red shirt leader of La Vuelta, wears a face mask to prevent the spread of the coronavirus before beginning the third stage of La Vuelta between Lodosa and La Laguna Negra Vinuesa, in Lodosa, northern Spain, Thursday Oct. 22, 2020. (AP PhotoAlvaro Barrientos)

Jumbo's Primoz Roglic, left, red shirt leader of La Vuelta, wears a face mask to prevent the spread of the coronavirus before beginning the third stage of La Vuelta between Lodosa and La Laguna Negra Vinuesa, in Lodosa, northern Spain, Thursday Oct. 22, 2020. (AP PhotoAlvaro Barrientos)

Jumbo's Primoz Roglic, left, red shirt leader of La Vuelta, performs a facial control check before beginning the third stage of La Vuelta between Lodosa and La Laguna Negra Vinuesa, in Lodosa, northern Spain, Thursday Oct. 22, 2020. (AP PhotoAlvaro Barrientos)

Jumbo's Primoz Roglic, left, red shirt leader of La Vuelta, performs a facial control check before beginning the third stage of La Vuelta between Lodosa and La Laguna Negra Vinuesa, in Lodosa, northern Spain, Thursday Oct. 22, 2020. (AP PhotoAlvaro Barrientos)

Roglic, who a few weeks ago lost the Tour de France on the final competitive stage, won the first Vuelta stage and was second on the second stage.

Jumbo's Primoz Roglic, red shirt leader of La Vuelta, wears a face mask to prevent the spread of the coronavirus as he warms up before the third stage of La Vuelta between Lodosa and La Laguna Negra Vinuesa, in Lodosa, northern Spain, Thursday Oct. 22, 2020. (AP PhotoAlvaro Barrientos)

Jumbo's Primoz Roglic, red shirt leader of La Vuelta, wears a face mask to prevent the spread of the coronavirus as he warms up before the third stage of La Vuelta between Lodosa and La Laguna Negra Vinuesa, in Lodosa, northern Spain, Thursday Oct. 22, 2020. (AP PhotoAlvaro Barrientos)

Marc Soler, the second-stage winner on Wednesday, needed a bike change near the end, while Esteban Chaves also faced mechanical difficulties.

French rider Thibaut Pinot withdrew from the Vuelta before the start of the third stage because of back pain stemming from his crash on the first day of the Tour de France. He will not compete again this year.

Friday’s fourth stage will take riders 191.7 kilometers (119 miles) through a mostly flat route from Garray to Ejea de los Caballeros. It will be one of the few stages this year with a sprint finish.

Jumbo's Primoz Roglic, left, red shirt leader of La Vuelta, wears a face mask to prevent the spread of the coronavirus while preparing before the third stage of La Vuelta between Lodosa and La Laguna Negra Vinuesa, in Lodosa, northern Spain, Thursday Oct. 22, 2020. (AP PhotoAlvaro Barrientos)

Jumbo's Primoz Roglic, left, red shirt leader of La Vuelta, wears a face mask to prevent the spread of the coronavirus while preparing before the third stage of La Vuelta between Lodosa and La Laguna Negra Vinuesa, in Lodosa, northern Spain, Thursday Oct. 22, 2020. (AP PhotoAlvaro Barrientos)

The Vuelta is taking place amid tight health restrictions as Spain recently endured a surge in coronavirus cases. The race was postponed from earlier in the year because of the pandemic.

More AP sports: https://apnews.com/apf-sports and https://twitter.com/AP_Sports

Jumbo's Primoz Roglic, left, red shirt leader of La Vuelta, wears a face mask to prevent the spread of the coronavirus while preparing before the third stage of La Vuelta between Lodosa and La Laguna Negra Vinuesa, in Lodosa, northern Spain, Thursday Oct. 22, 2020. (AP PhotoAlvaro Barrientos)

Jumbo's Primoz Roglic, left, red shirt leader of La Vuelta, wears a face mask to prevent the spread of the coronavirus while preparing before the third stage of La Vuelta between Lodosa and La Laguna Negra Vinuesa, in Lodosa, northern Spain, Thursday Oct. 22, 2020. (AP PhotoAlvaro Barrientos)

Jumbo's Primoz Roglic, left, red shirt leader of La Vuelta, wears a face mask to prevent the spread of the coronavirus before beginning the third stage of La Vuelta between Lodosa and La Laguna Negra Vinuesa, in Lodosa, northern Spain, Thursday Oct. 22, 2020. (AP PhotoAlvaro Barrientos)

Jumbo's Primoz Roglic, left, red shirt leader of La Vuelta, wears a face mask to prevent the spread of the coronavirus before beginning the third stage of La Vuelta between Lodosa and La Laguna Negra Vinuesa, in Lodosa, northern Spain, Thursday Oct. 22, 2020. (AP PhotoAlvaro Barrientos)

Jumbo's Primoz Roglic, left, red shirt leader of La Vuelta, performs a facial control check before beginning the third stage of La Vuelta between Lodosa and La Laguna Negra Vinuesa, in Lodosa, northern Spain, Thursday Oct. 22, 2020. (AP PhotoAlvaro Barrientos)

Jumbo's Primoz Roglic, left, red shirt leader of La Vuelta, performs a facial control check before beginning the third stage of La Vuelta between Lodosa and La Laguna Negra Vinuesa, in Lodosa, northern Spain, Thursday Oct. 22, 2020. (AP PhotoAlvaro Barrientos)