Alonso also played for the Spain national team from 2003 until 2014. He retired from football in 2017 and became a manager in 2018 for Real Madrid's youth sectors, which are known as "La Fábrica" (the factory). In 2019, he started coaching Real Sociedad's youth sectors. Real Sociedad is also the club where Alonso began his career in 1999. 