Richard Carapaz became the first Ecuadorian winner of the Giro d'Italia after safely negotiating the final individual time trial around Verona.
The 26-year-old Movistar rider held on to the pink jersey he first claimed after stage 14 a week ago.
Carapaz finished the 21st and final stage some 40 seconds behind stage winner Chad Haga (Sunweb) but he had plenty of time to play with as he crossed the line.
Italian Vincenzo Nibali (Bahrain-Merida) held on to second place in the final standings, while Carapaz's team-mate Mikel Landa fell short of the time set by Primoz Roglic (Jumbo-Visma) and dropped to fourth behind the Slovenian.
Belgian duo Victor Campenaerts and Thomas De Gendt finished the last stage in second and third behind American Haga, who completed the 17km time trial in 22mins 7secs.
Britain's Simon Yates clocked 23mins 7secs to hold on to his place in the top 10, finishing eighth overall.
Simon Yates wants to "finish the job" after confirming his participation at the Giro d'ItaliaRead the full story ›
The Team Sky cyclist took the lead in the past few days and confirmed his place as the first British winner of the Giro d'ItaliaRead the full story ›
Team Sky's Chris Froome moved into the overall lead, winning the stage by two minutes and 59 seconds from Movistar's Richard Carapaz.Read the full story ›
Simon Yates retained the overall lead in the Giro d'Italia as Elia Viviani claimed his fourth stage win of the race on Wednesday.Read the full story ›
Simon Yates cleared a hurdle in his bid for Giro d'Italia glory as the Bury rider kept the leader's pink jersey on Tuesday's time trialRead the full story ›
Simon Yates has extended his lead in the Giro d'Italia by winning stage 15 while his main rivals struggled on the road to Sappada.Read the full story ›
Simon Yates extended his overall lead in the Giro d'Italia to more than half a minute with victory on stage nine at Gran Sasso d'Italia.
Yates pounced in the final 100 metres of a climb that finished above the snow line to beat Frenchman Thibaut Pinot (Groupama-FDJ) and his Michelton-Scott team-mate Esteban Chaves, putting him 32 seconds clear of Chaves in the standings going into Monday's rest day.
But it was another bad day for Chris Froome, who failed to hang onto a five-strong breakaway group two kilometres from the finish, sliding out of the overall top 10 as a result and losing more than a minute on Yates.
Yates has held the race leader's pink jersey since stage six, when he finished second behind Chaves on the slopes of Mount Etna.
Here he timed his run to perfection, forming a four-strong chase when Italian Domenico Pozzovivo (Bahrain-Merida) attempted to break clear towards the end of the 225km stage from Pesco Sannita.
Pinot, Chaves and stage eight winner Richard Carapaz (Movistar) went with him, with Yates going around Pinot in the final moments to claim a victory he greeted with evident emotion.
As a result of his efforts Chaves moved up to second place in the overall standings, demoting Holland's defending champion Tom Dumoulin (Team Sunweb) into third, 38 seconds behind.
Simon Yates became only the fourth Briton to wear the Giro d'Italia's pink jersey after finishing second on stage six behind his Michelton-Scott team-mate Esteban Chavez.
Yates, who moved to the top of the standings after breaking away from the peloton late in the stage, follows Mark Cavendish, Sir Bradley Wiggins and David Millar in leading the prestigious race.
Chaves held a long-time lead on Mount Etna before being caught late on by Yates, who nevertheless allowed the Colombian to cross the line first as the stage winner.
"I said to him as soon as I caught him that he could take the stage because if I had enough time I would take the jersey," Yates said. "He'd been up the road all day and he deserved it."
Yates had started the day in third place, 17 seconds behind overall leader Rohan Dennis, but he now goes into stage seven with a 16-second advantage over Team Sunweb's Tom Doumoulin, with Chaves moving up up to third.
Yates added: "It was a crazy day with lots of attacks going at the beginning. As Esteban was at the front with a pretty big group, it made me sit back.
"It worked out perfectly. I felt good so I took my chance to ride across. I knew I was taking the Maglia Rosa, which pleases me a lot."
Chris Froome moved up to eighth place in the overall standings, one minute and 10 seconds behind Yates, after finishing in 10th place in the chasing group.
Team Sky star Chris Froome's attempt to win a third straight grand tour got off to a nightmare start at the Giro d'Italia on FridayRead the full story ›