Maximilian Schachmann retained his Paris-Nice title after overnight race leader Primoz Roglic suffered an ordeal in the final stage, a 92km ride from Le-plan-du-Var to Levens.
Roglic, who had a 52-second lead going into the last stage, crashed on a descent before being forced to change bike and, without a team mate to pace him back into the bunch, he lost considerable ground to end up outside the final top 10.
The Slovenian's woes brought back memories of last year's Tour de France, when he cracked in the final time trial to end up second behind compatriot Tadej Pogacar.
Roglic won three stages in this year's Paris-Nice but it did not matter in the end as German Schachmann of the Bora-Hansgrohe team finished on top, ahead of Russian Aleksandr Vlasov and Spain's Ion Izaguirre, who both ride for Astana.
The final stage was won by Dane Magnus Cort Nielsen ahead of France's Christophe Laporte at the end of a short sprint.
Roglic takes the consolation of finishing up with the green sprinter's jersey, ahead of Carrick-on-Suir native Sam Bennett, who won two stages on this year's race.
Elsewhere, Mathieu van der Poel emptied his tank to take a solo win in the fifth stage of the Tirreno-Adriatico as Tour de France champion Tadej Pogacar extended his overall lead in impressive style.
Dutchman Van der Poel first attacked the main bunch with 60 kilometres left on a stormy, cold day in the Marche, accelerating repeatedly until he was on his own before extending his advantage to almost three minutes.
After the 205km ride from Castellalto to Castelfidardo, Pogacar leads Wout Van Aert by 1:15 and Spain's Mikel Landa by 3:00 with 2019 Tour de France winner Egan Bernal in fourth place, 3:30 off the pace.
Irish time trial specialist Ryan Mullen is 137th on the GC, over an hour behind the leader.
Monday's sixth stage is a 169km ride from Castelraimondo to Lido di Fermo.