This summer was also 2.1 degrees Celsius (3.7 F) hotter than the national average from 1991-2020.
The highest single-day temperature of 45.8 C (119.3 F) was recorded in Jerez de la Frontera, in southern Spain, on Aug. 17 during a heat wave.
The Mediterranean region is heating up 20% faster than the global average, according to the United Nations.
The scorching summer months also saw Spain's countryside burn.
A record 382,000 hectares (944,000 acres) burned in a spate of wildfires, surpassing the previous high of 306,000 hectares (756,000 acres) burned in 2022, according to data compiled by the European Union’s European Forest Fire Information System.
Spain's weather service added that the country also had a particularly dry summer, especially in the areas of the northwest where wildfires did most of their damage.