Spain head coach Julen Lopetegui has signed a new contract that will run until 2020, the Royal Spanish Football Federation (RFEF) has confirmed.
The 51-year-old has agreed to a fresh deal that will see him lead the team during their qualifying campaign for Euro 2020.
Lopetegui, who succeeded Vicente del Bosque in July 2016, has only failed to win five of his 18 matches in charge of his country.
"We've worked hard during the last two years and we'll continue working the same way," he said.
Luis Rubiales, the new president of the RFEF, added: "There is a mutual trust and we're going forward with every excitement.
"All the management are very happy to be able to seal this agreement."
Spain won nine and drew one of their 10 World Cup qualifiers under Lopetegui, scoring 36 goals and conceding only three.
They were held to consecutive friendly draws by Russia and Germany before thrashing Argentina 6-1 in their most recent match in Madrid in March.
The 2010 world champions begin their World Cup campaign against Portugal on June 15, and will also face Morocco and Iran in Group B.