Richard Carapaz became the first rider from Ecuador to win a grand tour when he claimed the Giro d'Italia title on Sunday.

The Movistar rider snatched the overall lead with a solo win in the 14th stage and retained the pink jersey after Sunday's final stage, a 17-km individual time trial won by American Chad Haga.

Italian Vincenzo Nibali, who was chasing a third title, ended up second overall with Slovenian Primoz Roglic taking third place.

Carapaz, whose contract with Spanish outfit Movistar concludes at the end of the year, succeeded Dutchman Tom Dumoulin, who abandoned the race in the first week after a crash. 

Ireland's Eddie Dunbar further enhanced his growing reputation. He finished 22nd in the general classification for Team Ineos, the 22-year-old impressing throughout what was his first grand tour event.