Manchester United have confirmed they have reached an agreement to re-sign Cristiano Ronaldo from Juventus.

United made the announcement on Friday and have agreed to pay £12.8m for the 36-year-old, with the deal subject to personal terms, a visa and a medical.

Ronaldo made his name on the world stage in six years at United between 2003 and 2009, scored 118 goals in 292 games before moving to Real Madrid for a then world record transfer fee.

He became a legend at Madrid, scoring a remarkable 450 goals in 438 matches in a glittering nine-year spell that included four Champions League triumphs and winning the Ballon d’Or for the world’s best player four times.

Ronaldo joined Juventus in 2018 and won two Serie A titles, but his time in Turin has not lived up to expectations as the Italian giants’ 25-year wait to become champions of Europe have been thwarted.

Juve failed to get beyond the Champions League quarterfinals in the past three years and last season were deposed as Italian champions by fierce rivals Inter Milan.

“Today I depart from an amazing club, the biggest in Italy and surely one of the biggest in all of Europe,” Ronaldo posted alongside a compilation of best moments at Juventus on Instagram.

“The ‘tifosi bianconeri’ always respected me and I tried to thank that respect by fighting for them in every game, every season, every competition.

“In the end, we can all look back and realise that we achieved great things, not all that we wanted, but still, we wrote a pretty beautiful story together.”

United’s announcement came after a dramatic 24 hours. Neighbours Manchester City had looked to be one of the favourites to land the forward and some reports suggested personal terms had already been agreed between the two.

However, Ronaldo has opted to return to United where he spent six years and won three Premier League titles, one Champions League, two League Cups and one FA Cup – as well as the Fifa Club World Cup and Community Shield – under Sir Alex Ferguson.