Former Bayern Munich coach Julian Nagelsmann has been appointed as Germany's new manager until July 2024.
The 36-year-old succeeds Hansi Flick, who was sacked after a 4-1 friendly defeat by Japan earlier this month.
Nagelsmann has been out of work since Bayern sacked him in March after less than two years in charge, with Thomas Tuchel replacing him at the Allianz Arena.
His first match in charge will be a friendly against the United States in Connecticut on October 14 before facing Mexico in Philadelphia three days later.
"We have a European Championship in our own country. That's something special - something that happens every few decades," said Nagelsmann.
"I have a great desire to take on this challenge. We will be a close-knit group next year."
German Football Association sporting director Rudi Voller added: "Julian Nagelsmann was our preferred candidate as national coach when the search began.
"He is not only an absolute football expert but has already proven in all his positions - at a very young age for a head coach - that he can motivate and inspire a team and the entire environment.
"His fire for football is noticeable and contagious."