Cristiano Ronaldo has ended a nine-year spell at Real Madrid by agreeing to join Juventus in a deal reported to be worth €100 million (A$157 million).
Ronaldo indicated after Madrid won their fourth UEFA Champions League in five years that he was considering leaving the club.
And Serie A champions Juventus have swooped to sign the Portugal captain, reportedly paying Ronaldo €30 million (A$47 million) a year.
"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," Madrid said in a statement.
"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 Golden Balls, 2 The Best FIFA awards, and 3 Golden 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."
Ronaldo, 33, reached global superstar status after becoming the world's most expensive player when he joined Madrid from Manchester United in 2009.
During his time at the Santiago Bernabeu, Ronaldo won a host of trophies, including two La Liga titles, and two Copa del Rey crowns.
He helped Madrid to La Decima in the Champions League final with Atletico Madrid in 2014 and played a crucial role in Los Blancos winning the competition in each of the last three seasons.
Ronaldo, a five-time Ballon d'Or winner, will now have the chance to win his third different European league title after completing a shock move to Turin.
Madrid, meanwhile, have already denied making bids for Paris Saint-Germain duo Neymar and Kylian Mbappe as they prepare for the 2018-19 season under new coach Julen Lopetegui.
The former Spain coach takes over from Zinedine Zidane after the Frenchman surprisingly decided to resign after Madrid beat Liverpool in Kiev.