Luis Enrique was sacked as Spain coach on Thursday after the team's elimination in the last-16 at the World Cup.
The country's under-21 manager Luis de la Fuente has been named as his replacement by the Spanish football federation (RFEF)
Spain were beaten on penalties by Morocco after a goalless draw on Tuesday in an upset result after failing to turn their dominance into a victory.
"The ... RFEF has delivered to the president a report in which it determined that a new project should start for the Spain national team, with the aim of continuing the growth achieved in recent years thanks to the work carried out by Luis Enrique (and the staff).
"Both the RFEF president Luis Rubiales and sports director, Jose Francisco Molina have informed Luis Enrique of the decision. The RFEF would like to thank Luis Enrique and his entire coaching staff for the work done in the last few years."
The 52-year-old said after the Morocco match that he was to blame for the defeat. Enrique, who was first appointed Spain coach in 2018, had a contract until the end of the year.
He is the fourth manager to get sacked after their teams were eliminated at the World Cup in Qatar.
De la Fuente, 61, joined the RFEF in 2013 as the under-15 manager having worked with players like Marco Asensio, goalkeeper Unai Simon, Eric Garcia, Pau Torres, Pedri, Carlos Soler and Dani Olmo when they were youngsters.


PSG retain Champions League title with shoot-out win over Arsenal
French Open champion Gauff knocked out by Potapova in third round
Sabalenka sees off Kasatkina to reach French Open fourth round
Parry stuns Anisimova to reach first Grand Slam fourth round at French Open
Osaka survives three-set scare against teenager Jovic
