Ireland's Dan Martin finished eighth as Sepp Kuss won stage 15 of the Tour de France from a breakaway in Andorra.
Jumbo-Visma's Kuss was the last survivor of a 32-man group that got away on the 191km stage from Ceret to Andorre-la-Vielle, attacking on the final climb of the Col de Beixalis and holding off Alejandro Valverde on the long descent into town.
Martin of the Israel Start-up Nation team was part of that breakaway and crossed the line one minute and 22 seconds behind the stage winner, finishing in a time of 05:13.28 and moves up to 51st overall in the general classification.
Tadej Pogacar retained the yellow jersey and none of the Slovenian's rivals could shake the race leader as the group of favourites attacked each other on the climb, but they did do enough to distance Frenchman Guillaume Martin, who had climbed to second on Saturday's stage but dropped out of the top five a day later.
The American Kuss, one of several riders in the peloton to call Andorra home, made his move with five kilometres of the final category climb to go as the remnants of a powerful breakaway - which had also included Martin, Nairo Quintana and Julian Alaphilippe - split one final time.
The 41-year-old Valverde was the only man to sustain a challenge, cresting the summit 23 seconds down, but the Movistar rider could not make an impression on the 14.5km run down into town.
Wout Poels led home the next group of riders 75 seconds later, while Martin came home a further seven seconds back.
"It's incredible," said Kuss, the first American stage winner since Tyler Farrar in 2011.
"I was suffering a lot in this Tour, I just didn't feel I had the spice in the legs but today I knew it was finishing where I live and I was really motivated for that.
"It was a hard day in the breakaway. I know the final climb fairly well but I don't ride it so much in training because it's so hard. I knew in the beginning it's really tough so if I got a gap there I could try to hold it to the finish.
"It means a lot to be in the Tour de France, much less winning a stage, so it's really incredible. We only have five guys (left) in the race so we want to go for stages but we also have Jonas riding so strong."