"Julen Lopetegui will be the coach of Real Madrid after the 2018 World Cup in Russia." a statement read on their official website.
"Real Madrid CF announces that Julen Lopetegui will coach the first team for the next three seasons.
"Julen Lopetegui will join the club after the participation of the Spanish team in the World Cup, after two years leading the national team."
Julen Lopetegui managed Real Madrid B team between 2008 and 2009, as well as Porto, Real Vallecano and Spain U19's, U20's and U21's during his 15 years in management.
But his appointment has come as a huge surprise, considering the likes of Mauricio Pochettino were linked with taking over Zinedine Zidane's job.