Spain fires coach Lopetegui 2 days before World Cup opener

FILE - In this June 9, 2018 file photo, Spain's national soccer team coach Julen Lopetegui shouts during a friendly soccer match between Spain and Tun

FILE - In this June 9, 2018 file photo, Spain's national soccer team coach Julen Lopetegui shouts during a friendly soccer match between Spain and Tun

FILE - In this Saturday, Nov. 11, 2017 filer, Spain coach Julen Lopetegui stands by the bench during the international friendly soccer match between S

FILE - In this Saturday, Nov. 11, 2017 filer, Spain coach Julen Lopetegui stands by the bench during the international friendly soccer match between S

FILE - In this March 26, 2018 file photo, Spain's national soccer team coach Julen Lopetegui listens to a question during a news conference at the Wan

FILE - In this March 26, 2018 file photo, Spain's national soccer team coach Julen Lopetegui listens to a question during a news conference at the Wan

KRASNODAR, Russia (AP) — The Spanish soccer federation has fired coach Julen Lopetegui two days before the country's opening World Cup match against Portugal.

Lopetegui was let go a day after Real Madrid announced him as its new coach following the World Cup.

Federation president Luis Rubiales says it wasn't the best solution for the national team but the action was needed after it was caught by surprise by Real Madrid's announcement.

A replacement was not immediately announced.