Colombia's Felix Cardenas of the Baque team won the 17th stage of the Tour of Spain from Plasencia to La Covatilla.
Cardenas finished 29 seconds ahead of Spain's Santi Perez, while compatriot Roberto Heras took third, one minute and one second behind the race winner.
"It was a great win. I was injured before the Tour and didn't know what my form would be like," said Cardenas.
Heras held on to the overall lead, while Alejandro Valverde lost his hold on second after a poor final climb.
Stage 17 results:
1 Felix Cardenas (Col) Cafes Baque 4.52.08secs
2 Santiago Perez (Spa) Phonak +0:29secs
3 Roberto Heras (Spa) Liberty Seguros +1.01secs
4 Francisco Mancebo (Spa) Illes Balears-Banesto +1:15
5 Luis Perez (Spa) Cofidis +2:05
6 Angel Gomez (Spa) Paternina-Costa + 2:18
7 Jorge Ferrio (Spa) Paternina-Costa same time
8 Francisco Jose Lara (Spa) Paternina-Costa s.t
9 Carlos Sastre (Spa) Team CSC +2:45
10 Miguel A: M: Perdiguero (Spa) Saunier Duval-Prodir +3:03
Overall standings: