France's Clement Champoussin has claimed a surprise victory on a dramatic stage 20 at the Vuelta a Espana but Primoz Roglic has all but sealed a third straight title.
Slovenian Roglic of the Jumbo-Visma team finished the stage in second on Saturday, six seconds behind Champoussin (AG2R Citroen).
But more importantly Roglic finished two seconds and as many places ahead of Enric Mas (Movistar) who, barring any mishaps, will finish the race second.
It was a nightmare day for Mas' teammate Miguel Angel Lopez, who started the day third.
The Colombian slid down the standings before abandoning the race just 20km from the end, one day short of the finish line.
The 202.2km course from Sanxenxo to Mos. Castro de Herville contained five categorised climbs and was eventful from the outset, with a lengthy breakaway distancing the peloton.
Just over 50km from the end Ryan Gibbons (UAE Team Emirates) produced a solo attack and hit the final climb, the Alto Castro de Herville, in the lead.
The South African was reeled in with 3.3km to go by a group containing Roglic, Mas, Briton Adam Yates (Ineos), Australia's Jack Haig (Bahrain Victorious) and Spaniard Mikel Bizkarra (Euskaltel-Euskadi).
The group jockeyed for position as the climb kicked up, but were caught cold by Champoussin, who attacked from behind and kicked away to victory.
Roglic has a two minute, 38 second lead over Mas, who in turn leads Haig by 2min:10sec with the podium spots looking secure ahead of Sunday's final stage, a 33.8km individual time trial from Padron to Santiago de Compostela.