Spain's European Union-harmonised 12-month inflation rate stood at 3.6% in June, unchanged from the period through May, preliminary data from the National Statistics Institute (INE) showed on Monday.
The June figure was above the 3.4% expected by analysts polled by Reuters.
Core inflation, which strips out volatile fresh food and energy prices, was 2.9% year-on-year, compared to 3% in May, the INE data showed.
Spain's 12-month national inflation stood at 3.2%, unchanged from May. Analysts polled by Reuters expected a 3% rate.