Kaka said that while he was on the fringes of the Real team he lost some of his motivation for the game, but has now got that back upon his return to Milan.
"It's really nice to be back," BBC Sport quotes Kaka as saying. "Seeing all the people at Milanello again made me feel like I'd never been away. I've learned a lot from players with more experience than me and now it's up to me to take on the role of an expert.
"Real have some very specific plans for the team and the space afforded to me was growing smaller and smaller, so I agreed my departure with Ancelotti. Real are a great club and I'm happy to have been part of their history but I lost the joy of playing football a bit there. I think this is the right place for me."
Kaka returned to Milan on a two-year deal on deadline day.