Earlier on Tuesday, Real Madrid said that Lopetegui would take charge of the club after the tournament and would replace Zinedine Zidane, who had announced his resignation on May 31.

"The Spanish FA and Julen Lopetegui have reached an agreement to terminate the contractual relationship between the two [parties]. The 51-year-old will step down as Spain head coach after the World Cup. The Spanish FA will receive the full buy-out clause so the current national team boss can sign for Real Madrid," the federation said in a statement published on its official website.

The federation added that its President Luis Rubiales and Lopetegui will give a joint press conference on Wednesday.

Lopetegui led the Red Fury to the 2018 FIFA World Cup finals without suffering a single defeat in their ten World Cup qualifying matches and recently extended his contract with the Spanish Football Federation until 2020.

Spain have been drawn in Group B and will play reigning European champions Portugal in Sochi on June 15, Iran in Kazan on June 20 and Morocco in Kaliningrad on June 25.