Yates' Mitchelton-Scott team mate Esteban Chaves started the day ahead of Dumoulin in second place overall, but was badly off the pace, with the Colombian losing time on the first climb and slipping down the leaderboard into 39th place.
Afterwards, he said: "It's incredible. When I saw that he was not passing, I gave it my all".
Going into Tuesday's stage they were in the enviable position of occupying the top two positions in the overall standings, meaning tactically they would be able to play two cards in the pink jersey race and increase the pressure on their rivals. I'm super happy for myself but, foremost, for my team Bahrain-Merida.
Part of an initial 17-man break that came to nothing, Mohoric attacked again inside the final 40km to reel in lone leader Marco Frapporti (Androni-Giocattoli) before riding clear once Denz joined him following the final descent.
Mohoric attacked again in the final 40 kilometres and then outsprinted Nico Denz to add a Giro stage win to his victory at the Vuelta a Espana a year ago. I first thought Esteban Chaves would be able to come back but it was a really insane stage and I'm very disappointed for him as I know he's worked very hard for this. Yates leads by 41 seconds from Dumoulin with Thibaut Pinot of Groupama-FDJ five seconds further back in third.
What was expected to be a quiet transition stage - over the longest distance of the entire Giro at 244km - turned into a frantic day of racing which included a couple of climbs. I guess anything we gained from the rest day has gone to s*** after 250km of suffering!, Big shout out to @koenbouwman and @RGUpdate for laying it down today.
"I need as many seconds as I can get so maybe I need to go for more bonus seconds", he added.