Alto de las Allanadas: Chris Froome produced a stunning breakaway up a steep summit finish on the 199.8km fourth stage of the Ruta del Sol to take a two-second lead over Alberto Contador into Sunday`s final stage.
Contador had held a 27-second lead over the 2013 Tour de France winner after winning their first battle of the season on a mountain finish in Friday`s third stage.
However, Froome had his revenge on the gruelling 4.4km climb to the finish line at Alto de las Allanadas to take the stage in 5hr 08min 54sec and grab the narrowest of advantages over his Spanish rival.
"I`m absolutely blown away to have pulled that off at the end there," said Froome.
"I came into this race thinking that I`m here to find my legs, test them, and see where I`m at. To have been able to win the stage and go into the race lead today is incredible."
Contador was second with Froome`s Sky team-mate Mikel Nieve back in third.
"Some days you win, some days you lose," said the two-time Tour de France winner.
"I think it is great that the Ruta del Sol is such a fantastic race, that it is such a show and closely fought."
Contador announced his intention to retire at the end of the 2016 season earlier this week, but wants to become the first man since Marco Pantani in 1998 to win both the Giro d`Italia and the Tour de France in the same season before he bows out.
"I am very happy with how my preparation is going. Yesterday when I won everyone said I was so strong, but I have my own plan. I am going a bit slower at this stage of the season than in the past with the Giro in mind."
Froome is now firm favourite to claim the overall win on the flatter 169.8km stage from Montilla to Alhaurin de la Torre.
However, he insisted that Contador can never be written off.
"This race is not over until it`s over though. In the last few years I`ve learnt that Alberto never gives up."