The reading was higher than the 9.0% forecast by analysts polled by Reuters.

Core inflation, which strips out volatile food and energy prices, rose to 5.5% year-on-year from 4.9% a month earlier, the INE data showed.

Spanish European Union-harmonised inflation was 10.0% in the 12 months through June, up from 8.5% a month earlier.

(Reporting by Joao Manuel Mauricio in Gdansk, editing by Inti Landauro)