the third week began with the now-shortened "queen stage" of the race. missing out on the gavia, the challenging day saw the "maglia azzurra" (mountain classification) leader giulio ciccone () not only secure the classification, but win the stage from a tough breakaway with jan hirt () in a close second. fausto masnada (androni giocattoli-sidermec) grabbed his second podium of the race in third, and saw lopez lose some 20 seconds on nibali, as well as roglič over a minute. the seventeenth day was another one for the break, this time nans peters (ag2r la mondiale) breaking through for the win, with esteban chaves (mitchelton-scott) around a minute and a half back, and davide formolo () rounded out in third. nibali, roglič, and others once again lost seconds on carapaz. stage eighteen, however, was more or less a break in the action for many. damiano cima (nippo-vini fantini) outlasted the sprint trains to take a surprise win over ackermann and simone consonni (). demare held the points classification up to this point, but bad positioning meant he brought it home in eight, putting ackermann in the "maglia ciclamino" to the end of the race. stage nineteen was yet another for the break, this time chaves finally nabbing a stage win for himself and mitchelton-scott. andrea vendrame (androni giocattoli-sidermec) and amaro antunes (ccc team) made up the top three, with lopez gaining around 45 seconds on his rivals. the penultimate stage of the giro was maybe one of the more exciting ones, with pello bilbao () taking another one for himself over landa, with ciccone not far behind in third. roglič and yates both lost 50 seconds to the favorites, and lopez once again lost 2 minutes on them. that left everything on the table for the final time trial to round out this year's edition. the american chad haga (team sunweb) surprisingly gave sunweb their one and only win in the giro, with campernaerts once again only four seconds down, and with thomas de gendt (lotto soudal) taking the final place on the podium, rounding out an excellent giro.