Vicente del Bosque has resigned as Spain head coach after eight years in the role.
The 65-year-old, who led his country to victory at the 2010 World Cup and Euro 2012, was expected to step down after Spain crashed out of Euro 2016 at the last-16 stage on Monday, losing 2-0 to Italy at the Stade de France in Paris.
Spain’s poor showing in France followed on from their group stage exit at the 2014 World Cup in Brazil, where they were the first nation to be eliminated.
“Without a doubt, I have no intention to remain as coach, but you have to be discreet. No matter what the result of the Euros, I had no doubt about what my future would be,” he told Spanish public radio RNE.
“I have handled this issue discreetly. But it is a decision that was taken in advance.”
Del Bosque added: “On July 31 I will leave football. I will be available to help. I will leave the bench although I will always remain close and will want things to go well for Spanish football. If I can help in anything, I will.”