Germany head coach Joachim Low has prolonged his contract until after the European Championship in 2020.
The German FA (DFB) confirmed on Monday that Low, who took charge of the national side in 2006, had agreed to extend his current terms beyond the end of the 2018 World Cup in Russia.
DFB president Reinhard Grindel said: "Joachim Low and the DFB have this morning signed a new contract, renewing the partnership until 2020.
"We have common goals. We want to defend the title in Russia, and we want to win the 2020 European Championship."
Low said success at Euro 2020 was a prime target and said: "If both mind and heart say yes, there is no reason to think about it for a long time. I still have the same motivation as when I started out. I feel the trust."
He added: "Developing this team and these players and trying to take them to the highest level is a real joy."
Low, who worked as Germany's assistant manager for two years before become head coach a decade ago, has won 96 of his 141 matches, drawn 23 and lost 22.
Germany have reached the semifinal stage at every major tournament under Low, and won the 2014 World Cup in Brazil.
Earlier this month, the 56-year-old had told reporters that he had yet to make a decision on his future but confirmed there would be "talks with the association at some point leading up to the tournament in Russia."
He had not ruled out leaving the Germany job and returning to management with a foreign club but added that he was not interested in coaching in the Bundesliga.
- Germany (@DFB_Team_EN) October 31, 2016
"The tournaments are my Champions League, and I have a collected a lot of experience in the past few years," Low said. "We've got young players coming through, who can break into the world class. It's fun for me right now. But it's not unthinkable to coach a club one day."
The news of Low's new deal -- which comes as the DFB prepares for its general meeting in Erfurt later this week, where current president Grindel is expected to be re-elected as president -- brought a mixed reaction in the German media.
Kicker magazine and Zeit Online both described the contract decision as "unnecessary," with the latter urging Low to draw conclusions from the semifinal defeat to France at Euro 2016 and adding: "Should the World Cup be a failure, he'll be questioned regardless."
Kicker added: "Low will be measured by the 2018 World Cup. Should the national team experience a debacle, the new contract is worth close to nothing, and Grindel would be measured by the compensation fee for Low, should he not waive it."
Der Tagesspiegel, though, said the new deal left winners on both sides. The paper said in an editorial that Low knows he is well suited to the job and referenced Grindel's history as a politician, saying the deal showed he knows how to please the public.
Speaking on Monday, Low dismissed questions over the timing of the deal, saying: "Why not now? Today is the best time when you are convinced that you can still achieve a lot. We will qualify for the World Cup. Now was the right time."