Geoffrey Soupe edged Orluis Aular to win the Vuelta a Espana stage seven on Friday in a frenzied bunch sprint finish.
Alpecin-Deceuninck sprinter Kaden Groves seemed well-placed to win a third stage on this year's race but was passed on the final corner, finishing fifth.
French rider Soupe, of the TotalEnergies team, got his wheel over the line in a photo finish as Aular almost caught him, securing his biggest career win to date.
"It's incredible for me and for the team because I wasn't going to ride the Vuelta this year," said Soupe.
"I didn't think it was possible to win a stage because it's really fast in the sprint."
Groupama-FDJ's Lenny Martinez, the youngest Vuelta leader in history, retains the red jersey which reigning champion Remco Evenepoel was happy to lose on Thursday.
"Today I just wanted to keep the jersey, I didn't want to crash, I didn't want to lose any time," said 20-year-old Martinez.
"It's my first time being so close to the sprinters. A lot of riders came to congratulate me. It was a beautiful day."
Jose Herrada of Cofidis -- in the final race of his career -- and Burgos-BH's Ander Okamika attacked to create an early breakaway on the flat 200.8 kilometres between Utiel and Oliva.
Veteran Welsh rider, Geraint Thomas, a former Tour de France champion, was one of a trio of Ineos riders who crashed early on before later returning to the peloton.
It was a far calmer ride than Thursday's frantic exploits, which saw Jumbo-Visma add a potential third general classification candidate in Sepp Kuss, who won stage six, while Primoz Roglic and Jonas Vingegaard took over half a minute out of Evenepoel.
The bunch caught Herrada but Okamika made it into the final 42 kilometres before he was swallowed up.
Green jersey wearer Groves won the intermediate sprint ahead of Marijn van den Berg and Vingegaard to increase his points lead, with the Danish back-to-back Tour de France winner happily snatching up two bonus seconds.
A crash brought down Vingegaard's team-mate Kuss with around 10 kilometres to go but the American was quickly back on his bike.
Another collision brought down Ineos rider Thymen Arensman five kilometres later and he needed medical assistance, later abandoning the race.
Saturday's stage is more challenging, with a category one and a category three climb on the 165 kilometre run from Denia to Xorret de Cati.
This is the 78th edition of the race, which ends in Madrid on September 17 after 21 stages and 3,153.8 kilometres.