The Spaniard, one of six riders to have won all three Grand Tours in a 14-year professional career marred by a doping ban, made his announcement on social media site Instagram on Monday. Contador said:
“I am retiring from professional cycling. I say this happy and without sadness.”
“It’s a decision I have thought over very well and I don’t think there is a better farewell than in the race in my country. I hope it will be three wonderful weeks.”
Nicknamed El Pistolero for his attacking style and ability to mount devastating attacks in the mountains, Contador won his first Tour de France in 2007 with the Discovery Channel team before moving to Astana and winning it again in 2009.
He also won the 2010 edition but he was stripped of that title in 2012 after being banned for two years after testing positive for the banned substance clenbuterol at the race.
Contador, who blamed it on contaminated steak, was initially cleared by the Spanish cycling federation but the Court of Arbitration for Sport (CAS) eventually confirmed the ban, backdating it to January 2011.
He returned in 2012 to win the Vuelta.
While Contador, who also stripped of the 2011 Giro d’Italia title, divided opinion within the sport he remained one of the most popular riders among cycling fans.
As well as his Tour triumphs, he won the 2008 and 2015 Giros and the Vuelta in 2008, 2012 and 2014.
In 2015 he announced that he would attempt to become the first rider since Marco Pantani in 1998 to win the Giro and the Tour back-to-back. However, after winning the Italian race his Tour hopes evaporated as he struggled in the Alps and eventually finished fifth.
Contador joined the Trek Segafredo team this season and finished ninth in the Tour de France.
His hopes of bowing out with victory in the Vuelta look slim as the race includes Tour winner Chris Froome (Team Sky), Italian Vincenzo Nibali (Bahrain-Merida) and France’s Romain Bardet (Ag2r) who was third on the podium in Paris.
“It was great to have him in the team, even it was only for one season, and we will keep giving it our all to help him to achieve a big result in his last Vuelta a Espana,” Trek-Segafredo general manager Luca Guercilena said.
“It goes without saying we wish him the very best for his future afterwards!”