Real Madrid have confirmed that Cristiano Ronaldo has agreed to join Juventus in a €105 million (£92.7m) deal.
The 33-year-old has agreed contract terms with the Serie A champions and will be paid €30m (£26.4m) per season.
Juve president Andrea Agnelli flew out to Greece on Tuesday to personally meet Ronaldo and put the finishing touches on their agreement.
Ronaldo's agent Jorge Mendes has been negotiating the transfer fee over the last 10 days and Madrid's president Florentino Perez has now given the green light to an offer of €105m from Juventus.
Ronaldo spent nine seasons at Real Madrid and leaves as the club's all-time highest scorer with 451 goals in 438 appearances.
The former Manchester United forward won 16 titles during his time at the Santiago Bernabeu, including three consecutive Champions League trophies in the last three seasons.
An official statement from Madrid read: 'Real Madrid CF communicates that, in response to the will and request expressed by the player Cristiano Ronaldo, he has agreed to transfer to Juventus FC.
'Today, Real Madrid wants to express its gratitude to a player who has proved to be the best in the world and who has marked one of the brightest times in the history of our club and world football.
'Beyond the conquered titles, the trophies achieved and the triumphs achieved in the playing fields during these 9 years, Cristiano Ronaldo has been an example of dedication, work, responsibility, talent and improvement.
'He has also become the top scorer in the history of Real Madrid with 451 goals in 438 games.
'In total 16 titles, including 4 European Cups, 3 of them consecutive and 4 in the last 5 seasons.
'On an individual basis, with the Real Madrid jersey he has won 4 Gold Balls, 2 The Best, and 3 Gold Boots, among many other awards.
'For Real Madrid Cristiano Ronaldo will always be one of his great symbols and a unique reference for the next generations.
'Real Madrid will always be your home.'