Luis Enrique has returned to the role of Spain coach and will lead the 2010 world champions at Euro 2020.
The former Barcelona and Roma boss began a leave of absence in March and officially resigned in June as his young daughter, Xana, battled bone cancer. She died in August.
Robert Moreno replaced Luis Enrique and won each of his three matches while overseeing the team in a caretaker capacity and recorded a further four wins and two draws after stepping into the position on a permanent basis.
However, Royal Spanish Football Federation (RFEF) president Luis Rubiales confirmed on Tuesday that Luis Enrique will re-assume charge of the two-time European champions, and rejected any talk of the governing body mismanaging the situation.
"On Sunday [RFEF sports director Jose Francisco] Molina spoke with Robert Moreno, and Robert Moreno said he wanted to know now what is going to happen. Molina told him to wait until after games, but if Luis Enrique wants to return to his job we will consider it," Rubiales said.
⚠ OFICIAL | Luis Enrique regresa al frente de la @SeFutbol. La @RFEF ha mantenido su palabra de dejar las puertas abiertas al técnico asturiano, que dirigirá al equipo hasta el Mundial de #Qatar2022. Así lo explicó el presidente @LuisRubiales pic.twitter.com/m173mjPyUG— Selección Española de Fútbol (@SeFutbol) November 19, 2019
"On Monday, we received a message from Robert Moreno, who said he would not stand in way of Luis Enrique returning.
"The first person who knew that Luis Enrique wanted to return, even before us at the federation, was Robert Moreno.
"We have always acted with respect and transparency. And we have kept our word. The federation has acted coherently with everyone. We are loyal to Luis Enrique and the person who occupied his job."
Moreno, who will not resume his former role as an assistant, reportedly left the Wanda Metropolitano in tears following Monday's convincing 5-0 victory over Romania, officially his sixth game as head coach.
Ahead of the Romania match, Spain's final qualifying fixture, he reportedly learned of the RFEF's plans to replace him and is said to have been upset with the handling of Luis Enrique's return.
Moreno skipped the usual post-match media conference, which was reportedly his own decision.
In September, Moreno said of Luis Enrique: "If one day he wants to return, I will be happy to step aside and work with him."
Ex-Celta and Girona head coach Juan Carlos Unzue is instead expected to take over as assistant as the team builds towards Euro 2020.