Real have announced that after the tournament he will take over at the Bernabeu, stepping into the role that Zidane Zidane vacated following his shock departure at the end of May - just days after guiding Real to a third consecutive Champions League title.
However, they have now made a decision to appoint Lopetegui, who signed a new two-year extension with the Spanish Football Federation (RFEF) last month. They also scored 36 goals, and their form means they are one of the favourites ahead of the tournament in Russian Federation.
After retiring from football, Lopetegui became an assistant for Spain's U17 team in 2003, before swiftly taking charge of Liga B side Rayo Vallecano.
In a brief statement to announce the appointment, the Madrid giants said Lopetegui had been appointed on a three-year contract. Lopetegui spent part of his footballing career at Real Madrid, but only managed one senior appearance for the club.
Spain are the only team in Russian Federation who have remained undefeated from Euro 2016 to the World Cup.
Julen Lopetegui will join the club after the participation of the Spanish team in the World Cup, after two years leading the national team.
They face a World Cup group containing Iberian rivals Portugal, as well as Morocco and Iran.
- Neymar's stunning World Cup warning in Brazil romp
- Tesla Roadster 'SpaceX' package to get rocket thrusters?
- New Forza Horizon 4 ready to excite gamers
- Domino’s Pizza Repaves Potholes In Milford, Delaware
- Donald Trump meets Kim Jong Un
- Rodman arrives in Singapore ahead of summit
- Wilder, Joshua agree fight deal
- Resident Evil 2 Remake Officially Revealed With New Trailer; Release Date Confirmed
- United States lauds its ties with Taiwan on dedication of new office
- Gareth Southgate hopeful England's play will bridge gap to the fans