Kaka, who played most of his career at AC Milan and Real Madrid, revealed his decision in an interview with the Brazilian O Globo channel. He also won the 2002 World Cup with Brazil, who he was capped for 92 times from 2002 to 2016, and the Ballon d'Or as best player in the world in 2007.
The local media quoted Kaka as saying, "I am preparing to continue in football and to have a different role, but I will no longer be a professional player, an athlete". Further spells at Milan and Sao Paulo ensued before the midfielder concluded his career in the US with Major League Soccer outfit Orlando City.
The legendary Brazilian also won an array of individual honours, and his 2007 Ballon d'Or title is the last time anyone other than Lionel Messi or Cristiano Ronaldo lifted football's most prestigious individual honour.
I needed a bit of time to think and make my decision with calm.
He was back at the San Siro last month, taking in the Rossoneri's 5-1 Europa League win over Austria Vienna after spending the day visiting the club's new headquarters and meeting with the Serie A club's new owners.
In total, Kaka retires with 746 career appearances, 237 goals, eight major trophies and millions of hearts won around the world of football. I would like to work at a club as a manager, a sporting director or in a role that combines things on the pitch and the club. The fact that I've had successes as a professional footballer doesn't mean that I will be a good director or not.
Kaka joined Orlando City from Milan in 2014 and spent three seasons with the club before departing earlier this year.