Borussia Dortmund striker Robert Lewandowski will join Bundesliga arch-rivals Bayern Munich on a free transfer at the end of the season, the German champions have announced.
The Poland international, who helped Dortmund win successive Bundesliga titles in 2011 and 2012, has signed a five-year contract.
Lewandowski had announced his intention to quit the Westfalenstadion once his contract expires at the end of the season, and had been continually linked with bitter foes Bayern.
The 25-year-old tried to force through the switch last summer but Dortmund put their foot down and insisted he see out his deal.
Chairman Karl-Heinz Rummenigge was delighted with the deal, saying: "We are very pleased that this transfer is successful.
"Robert Lewandowski is one of the world's best strikers, he will strengthen the squad of FC Bayern and give us a boost."
Lewandoski follows Mario Goetze to Munich, who sparked outrage when Bayern triggered his €37m release clause shortly before the sides met in the 2013 Champions League final.
The European champions currently top the Bundesliga, with Dortmund 12 points off the pace in fourth.
Lewandowski has scored 65 times in 115 Bundesliga appearances after moving to Dortmund from Lech Poznan in June 2010 for €4.5m.