Pello Bilbao shook off the other survivors of a long breakaway in the final kilometre into l'Aquila to win Friday's seventh stage as Valerio Conti held on to top spot of the overall leaderboard at the Giro d'Italia.
The victory lifted the Spanish Astana rider a second ahead of race favourite Primoz Roglic just outside the top 10 of the general standings.
"It was a really important day for me to day," Bilbao said the 29-year-old.
"It's a long time to claim my first victory in a three-week race," he added.
Italian Conti of Bahrain-Merida kept the pink jersey although it was briefly threatened by Spanish veteran Jose Rojas who was part of the breakaway.
Rojas, a 33-year-old with Movistar, had finished third in the breakaway the previous day that put Conti in pink. Rojas was also part of the escape on Friday.
Even though Conti's team-mates Jan Polanc and Diego Ulissi worked hard at the front of the peloton, when the gap reached two minutes with 30 kilometres to go, Rojas was in the overall lead on the road. But the relentless pursuit trimmed the gap in the final kilometres.
Rojas moved up to second, 1min 32sec behind Conti.
"It was a hard stage, and I was very tired from yesterday," Conti said. "I said to myself, 'Come on, you're strong,' and the team helped me through."
Even though the gap shrunk, the overall leaders stayed away. Bilbao, who had been helped during the breakaway by Astana team-mate Andrey Zeits, slipped away before the end.
"The final kilometre was a long one," Bilbao said. "I didn't want to go too hard. I saw I had a five-seconds lead, which is a good lead. I saved something for the final hundred metres, and I had time to celebrate."
Bilbao completed the hilly 180km stage at an average speed of more than 45 kilometres. The hungry pursuit by the peloton meant that for all the finishers the pace was high all day, a sharp contrast to the 233km stage on Thursday when the pack took a day off.
"It was racing, racing, racing for two hours," said Victor Campenaerts, a Belgian with Lotto-Soudal, who recently set the world hour record.
"Then it was keeping the breakaway to a two-minute gap. Yesterday was really long and easy," he added.
Roglic's prospects suffered a blow when Jumbo-Visma team-mate Laurens De Plus, slated to be the Slovenian's main helper in the Alps, withdrew.
Saturday's stage from Tortoreto Lido to Pesaro along the Italian west coast is the longest in this year's race at 239km.