Bayern Munich have confirmed that Julian Nagelsmann has signed a five-year contract to take over as head coach starting next season. Nagelsmann, 33, will step down from his role as RB Leipzig coach at the end of the season. He took the reins at the Saxony club in 2019 and led them to the Champions League semi-finals last year for the first time. The youngest ever Bundesliga coach when he took over at Hoffenheim five years ago, Nagelsmann was long seen as a Bayern target. "Julian Nagelsmann represents a new generation of coaching," said Bayern president Herbert Hainer. "Despite his young age he has already had an impressive track record. "We are convinced that with Julian Nagelsmann we will continue the success of the past years." He will replace Hansi Flick in the Bayern hot seat after the latter asked the club to terminate his contract that runs until 2023 early following a falling out with the Bayern hierarchy. Flick has been heavily linked with the Germany national team job with Joachim Low set to quit after this summer's European Championship. Nagelsmann led Leipzig to third place in his first season as well as the Champions League last four, while this season his team still have an outside shot at the Bundesliga title, seven points behind Bayern with three games remaining. He will, however, have great expectations placed on him after Flick won every title available in the 2019/20 season with a six-trophy run. Flick may well also leave with yet another Bundesliga crown, extending Bayern's league run to nine consecutive titles. "For me the past two years have been unforgettable," Flick said in a club statement. "It was an outstanding time." "You only have success together. A coach is nothing without a team and I was lucky to have fantastic players here in Munich."