From 2010 to 2014, Lopetegui worked with the Spanish youth teams, winning the 2012 European Under-19 Championship and the 2013 Under-21 Championship. He left the Royal Spanish Football Federation on 30 April 2014, following the expiration of his contract.