Bayer Leverkusen have announced that coach Jupp Heynckes will be replaced by Freiburg boss Robin Dutt at the end of the season.
Heynckes, who has been linked with the Bayern Munich job, announced on Monday he would be leaving his current club when his contract expires in the summer.
Bayer have replaced him with Dutt, who has been given a two-year contract starting from July 1. He has led Freiburg to eighth in the table this season.
"Mr Heynckes has informed us he will not be available for another year in charge,'' Leverkusen's general manager Wolfgang Holzhauser told the club's website. "We are delighted Robin Dutt will start work with Leverkusen on July 1 after some very cordial negotiations with the Freiburg management.''
Heynckes has taken Bayer to within seven points of leaders Borussia Dortmund and their form is likely to deprive possible future employers Bayern of a Champions League place for next season.
"It was a very tough decision to leave Bayer Leverkusen," Heynckes said. "They are a very well led club with a fantastic team. I will put all of my efforts into cementing second place in the Bundesliga and qualifying for the Champions League next season."
Dutt added: "I am really looking forward to the challenge in Leverkusen and working with a team which has been coached magnificently by Jupp Heynckes.
"The philosophy of Bayer Leverkusen, which was explained to me by Wolfgang Holzhauser and (Bayer's director of sport) Rudi Voller, is exactly the same as my views of football."