The 25-year-old international signed a four-year contract after passing a medical earlier in the day, the Bundesliga club said on their website (www.fcbayern.t-home.de).
"It's done," said the club. "Arjen Robben will strengthen the Bayern squad with immediate effect."
They said Robben would train later on Friday and would be available for Saturday's match at home to champions VfL Wolfsburg, when Bayern will attempt to chalk up their first win of the season.
Under new coach Louis van Gaal, Bayern have taken only two points from their first three games in their worst start to a season for 43 years.
Their form has already brought stinging criticism from former players Oliver Kahn and Stefan Effenberg.
Bayern did not disclose the transfer fee for Robben but Spanish media estimated they had agreed to pay 25 million euros.
Robben made his debut for Real in September 2007 after moving from Chelsea but despite a number of scintillating performances last season his career has been blighted by injury.
The arrival of Cristiano Ronaldo and Kaka at the Bernabeu had made it less likely that he could command a regular place in Manuel Pellegrini's team this season.