Coach Luis de la Fuente will remain in charge of the Spanish national team until 2032.
This was announced by the Spanish Football Federation on Thursday.
De la Fuentes' previous contract expired after the end of Euro 2028.
The 65-year-old coach has had many successes in his career as a coach.
They recently won the 2026 World Cup, after a 1-0 victory in the final against Argentina.
In less than four years at the helm of Spain, he has also won the European Championship and the Nations League.
With Spain's U19 team, he won the 2015 European Championship, and in 2019, he won the U21 European Championship. In 2018, he won the Mediterranean Games with Spain, and at the Tokyo 2020 Olympic Games, he won silver.