Lepistö, who previously won the race’s final stage in 2016, outsprinted Giorgia Broznini (Cylance Pro Cycling), overall runner-up Marianne Vos (WaowDeals Pro Cycling) and Marta Bastianelli (Alé Cipollini) on the Welsh seaside town’s Promenade.

Despite crashing heavily during Saturday’s fourth stage, Vos’ team-mate Dani Rowe finished the 122-kilometre stage in the front group to maintain her third place on GC. She trailed Rivera by 25 seconds, while Vos ended up being just 11 seconds shy of the overall victory.

“Being in the leader’s jersey is all about being in control, having everything cool and under control,” said Rivera following her first UCI Women’s WorldTour stage race victory. “The girls and I did really well at that.  We set a really good pace on the climbs, there were a few attacks but eventually they came back.

“I’m really proud to have taken the win, the jersey belongs to the whole team.”

Commenting on the victory for Team Sunweb, coach Hans Timmermans added: “We can be super proud of the team. What they showed today and through the whole week is outstanding. They controlled the whole race and paced on the climbs; they were so strong that no one could attack. It’s really amazing and the win can only be for the whole team, they were super strong and executed the plan to perfection in the end.”