Joachim Low will step down from his role as Germany manager after this summer’s European Championships.
The 61-year-old has been in charge of his country’s national team since replacing Jurgen Klinsmann in 2006.
He had a contract until the 2022 World Cup but approached the German Football Association (DFB) to end it early.
“I take this step very consciously, full of pride and enormous gratitude,” said Low, who led his country to victory at the 2014 World Cup.
He added that “at the same time” he continues “to be very motivated when it comes to the upcoming European Championship tournament”.
“I am proud because it is an honour for me to be involved and because I have been able to work with the best footballers in the country and support them in their development,” said Low.
Following the World Cup success in Brazil, Low guided Germany to the semi-finals of Euro 2016 where they were beaten by hosts France.
He then came under pressure after his side went out at the group stage of the 2018 World Cup.
“I have great triumphs with them and painful defeats, but above all many wonderful and magical moments – not just winning the 2014 World Cup in Brazil,” added Low.
“I am and will remain grateful to the DFB, which has always provided me and the team with an ideal working environment.”
Germany are in Group F with France, Hungary and Portugal for this summer’s European Championships, which will take place from 11 June to 11 July after being delayed by a year because of the coronavirus pandemic.
They open their campaign against France on 15 June at Allianz Arena in Munich.
DFB president Fritz Keller said: “The fact that he informed us about his decision at an early stage is very decent.
“He gives us the necessary time to name his successor.”