MADRID — Simon Yates won his first Grand Tour title after a largely ceremonial ride into Madrid in the final stage of the Spanish Vuelta on Sunday, giving British riders a sweep of the season's three biggest races.

The 26-year-old Englishman was dominant throughout the three-week race across Spain, thriving on the toughest climbs and the flattest routes to secure the victory after a last stage in which riders didn't attack the leaders under cycling tradition.

The win means Britain has swept the three Grand Tours. Geraint Thomas won the Tour de France in July and Chris Froome the Giro d'Italia in May. Thomas and Froome, the defending Vuelta champion, skipped the race in Spain this year.

Italian rider Elia Viviani won the final sprint for his third stage win in this year's Vuelta, with Peter Sagan close behind him.

Yates, who rides for team Mitchelton-Scott, successfully defended his lead of almost two minutes in Saturday's demanding 20th stage, the last competitive one since the peloton took off from Malaga on Aug. 25. On Sunday, riders mostly paraded in a 100.9-kilometer (62.7-mile) route from the city of Alcorcon to the center of the Spanish capital.

Yates held the leader's red jersey through stages 9-11, then won stage 14 in the northwestern Picos de Europa mountains to take full control of the race until the end.

Spain's Enric Mas, from team Quick-Step Floors, won Saturday's difficult stage in Andorra and finished second in the general classification, 1 minute, 46 seconds behind Yates. Miguel Angel Lopez of Colombia, from Astana Pro Team, was third, more than two minutes off the lead.

Veteran Spaniard Alejandro Valverde was in contention from the first day but failed to keep pace with Yates on Saturday, dropping to fifth in the overall standings with Movistar Team. Steven Kruijswijk of Team Lotto NL-Jumbo finished ahead of Valverde in fourth place.

Yates had already come close to a Grand Tour victory in the Giro d'Italia in May, a race he led for 13 stages before losing the lead to eventual winner Froome with two days left.

Yates made his Grand Tour debut in the 2014 Tour de France. In last year's Tour, he won the young rider's classification, finishing seventh overall.

Movistar ended first in the overall team classification.

Sunday

At Madrid

21st (Final) Stage

A 62.7-mile flat ride from Alcorcon to Madrid

1. Elia Viviani, Italy, Quick-Step Floors, 2:21:18.

2. Peter Sagan, Slovakia, Bora-Hansgrohe, same time.

3. Giacomo Nizzolo, Italy, Trek-Segafredo, same time.

4. Danny Van Poppel, Netherlands, LottoNL-Jumbo, same time.

5. Marc Sarreau, France, Groupama-FDJ, same time.

6. Jon Aberasturi, Spain, Euskadi Basque Country-Murias, same time.

7. Simone Consonni, Italy, UAE Team Emirates, same time.

8. Matteo Trentin, Italy, Mitchelton-Scott, same time.

9. Tom Van Asbroeck, Belgium, EF Education First-Drapac, same time.

10. Ryan Gibbons, South Africa, Dimension Data, same time.

11. Max Walscheid, Germany, Sunweb, same time.

12. Tosh Van der Sande, Belgium, Lotto Soudal, same time.

13. Aritz Bagues, Spain, Euskadi Basque Country-Murias, same time.

14. Luka Mezgec, Slovenia, Mitchelton-Scott, same time.

15. Omar Fraile, Spain, Astana, same time.

Also

32. Simon Yates, Britain, Mitchelton-Scott, same time.

35. Benjamin King, United States, Dimension Data, same time.

40. Enric Mas, Spain, Quick-Step Floors, same time.

42. Miguel Angel Lopez, Colombia, Astana, same time.

51. Steven Kruijswijk, Netherlands, LottoNL-Jumbo, same time.

81. Joey Rosskopf, United States, BMC Racing, same time.

100. Kiel Reijnen, United States, Trek-Segafredo, :19 behind.

106. Brent Bookwalter, United States, BMC Racing, :28.

112. Sepp Kuss, United States, LottoNL-Jumbo, :30.

135. Ian Boswell, United States, Katusha Alpecin, :40.

Final Overall Standings

1. Simon Yates, Britain, Mitchelton-Scott, 82:05:58.

2. Enric Mas, Spain, Quick-Step Floors, 1:46.

3. Miguel Angel Lopez, Colombia, Astana, 2:04.

4. Steven Kruijswijk, Netherlands, LottoNL-Jumbo, 2:54.

5. Alejandro Valverde, Spain, Movistar, 4:28.

6. Thibaut Pinot, France, Groupama-FDJ, 5:57.

7. Rigoberto Uran, Colombia, EF Education First-Drapac, 6:07.

8. Nairo Quintana, Colombia, Movistar, 6:51.

9. Jon Izagirre, Spain, Bahrain-Merida, 11:09.

10. Wilco Kelderman, Netherlands, Sunweb, 11:11.

Also

24. Benjamin King, United States, Dimension Data, 1:03:40.

65. Sepp Kuss, United States, LottoNL-Jumbo, 2:20:11.

66. Brent Bookwalter, United States, BMC Racing, 2:21:43.

81. Joey Rosskopf, United States, BMC Racing, 2:51:48.

126. Ian Boswell, United States, Katusha Alpecin, 4:28:13.

135. Kiel Reijnen, United States, Trek-Segafredo, 4:49:50.

Category Leaders

Individual — Simon Yates, Britain, Mitchelton-Scott, 79:44:30.

Points — Alejandro Valverde, Spain, Movistar, 131.

Team — Movistar (Spain), 246:50:04.

Climber — Thomas De Gendt, Belgium, Lotto Soudal, 95 points.

Combined — Yates, 11 points.