Julian Nagelsmann has been given nine months to revive flailing Germany ahead of hosting Euro 2024 after being named as the sacked Hansi Flick’s successor as national team coach on Friday.

Germany sacked Flick with the national team struggling. The German Football Association fears another embarrassing performance in a major tournament, this time as hosts at next year’s European championships.

Former Bayern Munich boss Nagelsmann has signed a deal until the end of next July, allowing the 36-year-old to leave after Euro 2024.

“We have a European Championship in our own country — that’s something special,” Nagelsmann said in a statement.