RB Leipzig boss Julian Nagelsmann will join Bayern Munich on a five-year contract at the end of this season, the German champions have announced.
Current boss Hansi Flick had announced his wish to leave the Bavarian club.
At 33, Nagelsmann is one of the most highly-rated young managers in Europe and led Leipzig to a Champions League semi-final last year.
“Julian Nagelsmann stands for a new generation of trainers,” said Bayern president Herbert Hainer.
The German will reportedly cost Bayern more than £20m in compensation.
Nagelsmann became the youngest head coach in Bundesliga history, aged 28, when he took charge of Hoffenheim in February 2016.
After moving to Leipzig in 2019, he led them to a third-place finish in the Bundesliga and the semi-finals of the Champions League in his first season.
“Julian’s five-year contract alone shows how much he identifies with FC Bayern,” said Bayern board member Oliver Kahn.
“I am convinced we will shape the sporting future of FC Bayern very successfully together.”