Bayern have been pursuing the Germany international for some time and today announced they had agreed an undisclosed fee with City with the player having successfully negotiated a four-year deal at the Allianz Arena.
The 22-year-old joined City last summer from Hamburg but struggled to make an impact due to a succession of injuries.
The deal will be completed once Boateng has passed a medical in Bavaria.
A statement on the Bayern website read: "The board of Bayern Munich and the board of Manchester City have reached an agreement for the transfer of Jerome Boateng.
"Boateng, who is currently with City in Los Angeles, is expected in Munich in the next few days for a medical.
"Then he will sign a contract up to June 2015.
"The clubs have agreed not to disclose the transfer fee."
Bayern chairman Karl-Heinz Rummenigge was delighted to have finally landed Boateng.
"There have been some intense negotiations and we have come a long way to reach a satisfactory conclusion," he said on the club's official website, www.fcb.de.
"With Jerome Boateng we have got our preferred candidate to play in central defence for Bayern Munich."
Bayern sporting director Christian Nerlinger added: "Jerome Boateng is a young Germany international who fits perfectly into the philosophy of Bayern. He was also wanted by our coach Jupp Heynckes."
Berlin-born Boateng has made no secret of his desire to return to his homeland.
Just last month, speaking at a promotional event in Hamburg, he said: "I would like to go to Munich. On my side everything is clear.
"It is all about whether I am released (by City).
"Bayern are bigger than Manchester City, they are one of the top six teams in Europe. To play for them would be an honour for me."
Boateng believes he can further his international career at Bayern after expressing his displeasure at being played at right-back at Eastlands.
He added: "I told (City boss) Roberto Mancini that I want to play in central defence and not at full-back.
"Bayern have indicated I will play in the centre. To play there regularly is important for me because I will have a better chance of playing in the national team."
The hoop soccer jersey is classic and cool. The USA hooped jersey is perfect for every fan. Get in the Gear.
The USA will wear their blue away jersey against Jamaica in their World Cup qualifier on Friday night.
England will debut their new away jersey against Brazil at the Maracana Stadium on Sunday. Get in the Gear
The Nike Hypervenom is the latest cleat silo from Nike. It will change your game and is worn by the game's top players.
The adidas Nitrocharge is the most talked about new cleat in years. It was released on May 15 and will take your pitch by storm.
Neymar's move from Santos to Barcelona is no doubt the biggest summer transfer.
Germany is one of the top teams ever and they will play the US on Sunday.
Support the USA national team with an official 2013 Centennial soccer jersey from Nike. Its Official.
Barcelona will wear this new home soccer jersey next season. They also have a new away jersey. Get them both.
Manchester City will try and win back the Premier League title with this new soccer jersey from Nike!