Spanish troops in Iraq will be headed home.