The Brazil international won two Premier League titles during his time at the Etihad, along with the 2019 FA Cup and two Carabao Cup successes.
Danilo, who signed for City from Real Madrid in the summer of 2017, played a total of 60 games for City in a range of positions in defence and midfield.
"It's been a pleasure to be part of the success City have enjoyed in my time here," he said of his City career.
"The Club have been fantastic with me from day one and I will always ben grateful.
"The Premier League title wins will stay with me forever and I will always have City in my heart. The fans, the players and the staff have all been brilliant and i wish the Club every success in the future."
Here, we review the 28-year-old's finest moments in City blue.