Danilo has fulfilled a long-standing ambition to play for Pep Guardiola after completing his move to Manchester City from Real Madrid, subject to a work permit.
The 26-year-old right-back passed his medical ahead of signing a five-year contract with the Citizens on Saturday in a deal reportedly worth €30 million.
Danilo spent just two seasons at the Santiago Bernabeu, where he won back-to-back UEFA Champions League titles and La Liga.
The Brazil international will now embark on a new adventure in England, having jumped at the chance to work with City boss Guardiola.
"I am very, very happy to be joining Manchester City," Danilo told the club's official website.
"There has been strong interest from other clubs, but it has always been my ambition to play for Pep Guardiola. As soon as I heard of his interest, I knew immediately I wanted to be a City player.
"I can't wait to get started and I'm looking forward to getting to know my new team-mates over the coming weeks."
City director of football Txiki Begiristain: "Danilo is a fine player who offers great versatility to our squad. He can operate in several different roles in both defence and midfield, increasing Pep's options ahead of the new season.
"We feel he has all the attributes needed to succeed at City and we look forward to helping him develop during his time here."