In an open letter, Kaka declared:
"To the fans of Real Madrid,
"I have spent four years here giving my all to the team and overcoming challenges. We won three titles during the four years I have donned the Real Madrid shirt. This great club has a special place in my heart.
"I am now embarking on a new stage in my professional career, but I will always be fond of Spain and remember the good times I had here, and I am confident that all the effort was made in pursuit of success. There were many difficult times, but being part of the history of a great club like Real Madrid will stay with me for the rest of my life.
"I would like to take this opportunity to thank my teammates, coaches, all the staff, the management, the president Florentino Pérez, all the Real Madrid fans and those who have supported me over the years.
"Thank you and ¡Hala Madrid!
For the big stories and the banter follow us on Twitter: @tribalfootball