Cristiano Ronaldo will make a sensational return to Manchester United after the club reached agreement with Juventus to re-sign the Portugal superstar.
United announced on Friday they had secured a deal with the Italian giants that was subject to the agreement of personal terms, a medical and a visa.
It capped a remarkable turn of events after reports just hours earlier had suggested the 36-year-old, five-time world player of the year was poised to sign for United's cross-town rivals Manchester City.
United said in their announcement: "Everyone at the club looks forward to welcoming Cristiano back to Manchester."
It's understood United will pay 15 million euros ($A24 million) plus 8 million euros ($A13 million) in potential add-ons.
Ronaldo scored 118 goals in 292 appearances for United between 2003 and 2009 before leaving Old Trafford for Real Madrid, where his successes took him to a new level of global fame and included four Champions League wins.
Ronaldo had also been linked with Paris St Germain but City, after missing out on signing Harry Kane from Tottenham, had appeared the favourites to secure his services.
The champions are understood to have been offered the player but, after giving a potential deal some consideration, decided it was not something they wished to pursue.
They felt Ronaldo was not the right fit for Pep Guardiola's squad and, despite the Kane frustration, the manager himself is happy enough with the players he already has.
For their part, United had not been looking to sign Ronaldo but seized the opportunity when it became clear he wanted to leave Juve.
That a move would be happening was all but confirmed on Friday morning when coach Massimiliano Allegri revealed Ronaldo had asked to leave Juve.
It emerged soon after that United were in discussions with Ronaldo's agent Jorge Mendes and City confirmed they had ended their interest.
"I didn't think Cristiano was going to turn out leaving Juventus," United manager Ole Gunnar Solskjaer said before the signing.
"He knows what we feel about him and if he was ever going to move away from Juventus, he knows that we're here.
"He's such a tremendous human being as well, so let's see what happens with Cristiano. Everyone who has played with him, I think, has a soft spot for him."
Ronaldo left Turin after saying goodbye to his Juventus teammates earlier in the day.
He posted a farewell message on Instagram, writing: "I gave my heart and soul for Juventus and I'll always love the city of Turin until my final days.
"The 'tiffosi 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.
"I will always be one of you. You are now part of my history, as I feel that I'm part of yours. Italy, Juve, Turin, tiffosi bianconeri, you'll always be in my heart."
Australian Associated Press