On Tuesday, Spanish giants Real Madrid announced that Lopetegui would take charge of the club after the World Cup despite having previously extended his deal with the Spanish Football Federation until 2020.

Julen Lopetegui was sacked as the head coach of the Spanish national football team a day before the 2018 FIFA World Cup gets underway in Russia, Royal Spanish Football Federation President Luis Rubiales said Wednesday.

Rubiales spoke at a press conference in the southern Russian city of Krasnodar, where Spain will be based during the tournament.

The shocking announcement comes a day after Lopetegui was named as Real Madrid’s new manager, thus, replacing Zinedine Zidane. The news has reportedly angered the president of the Spanish Football Federation Luis Rubiales, who found the timing of Lopetegui’s announcement to be inappropriate.

Rubiales flew back from the FIFA Congress in Moscow on Tuesday night to Krasnodar, where the Spanish team is based. According to Marca media outlet, Rubiales feels ‘betrayed’ by Lopetegui and he was furious that Madrid confirmed the appointment of their new manager.

Multiple reports suggested that after arriving in Krasnodar, Rubiales demanded Lopetegui to be sacked but other members of Spain’s Football federation are trying to calm down the situation.

“We have been forced to dispense with the national coach. We wish him the greatest of luck,” said Rubiales.

He added that the negotiations have occurred without any information to the Spanish FA and they were informed just five minutes before the press release.

Talking about who will take over, Rubiales said, “When we know we will tell you. “I have spoken with the players and I can guarantee they will do everything, along with the new coach, to take the team as far as possible. To win is very important, to have the best coach very important, but above everything is acting in the right way. Maybe this is tough now, but in the end it will make us stronger.”

Lopetegui had signed a contract extension with Spain less than a month ago which keeps him as the head coach of the national team until after Euro 2020.