Spain dramatically sacked coach Julen Lopetegui on Wednesday -- just two days before the team's opening game against Portugal at the World Cup.

In a surprise announcement on Tuesday, Real Madrid appointed Lopetegui as Zinedine Zidane's successor to take over after the tournament in Russia, sparking outrage among the federation and Spanish fans at the timing of the announcement.

Lopetegui had signed a contract extension until 2020 just last month and never tasted defeat in his 20 games in charge as Spain boss.