Madrid or Marrakesh: which climate?

Madrid (Spain) has a hot-summer mediterranean climate, whereas Marrakesh (Morocco) has a hot semi-arid climate, according to the Köppen-Geiger classification.

The values compared here are normals computed over 86 complete calendar years, from 1940 to 2025, using ERA5 reanalysis data from the Copernicus programme. The same method and the same period apply to Madrid and to Marrakesh.

Marrakesh is warmer than Madrid by 4.5 °C in annual average: 18.7 °C against 14.2 °C.

Madrid gets more rain than Marrakesh: 430 mm per year against 289 mm.

Marrakesh gets 11.0 hours of sunshine per day on average, against 10.3 hours in Madrid.

Madrid and Marrakesh are warming at the same rate: about +2.4 °C between 1940 and 2025 on both sides.

Madrid averages 65 hot days (≥ 30 °C) and 39 frost days per year; Marrakesh averages 114 and 1.

Data from ERA5 reanalysis (Copernicus Climate Change Service), redistributed under a CC-BY 4.0 licence. Normals are recomputed whenever the archive is updated.

IndicatorMadridMarrakeshDifference
Mean daily temperature14.2 °C18.7 °C+4.5 °C
Average daily high19.8 °C25.7 °C+5.9 °C
Average daily low8.7 °C12.5 °C+3.8 °C
Annual rainfall430 mm289 mm-141 mm
Sunshine / day10.3 h11.0 h+0.7 h
Hot days (≥ 30 °C)65 d/yr114 d/yr+49 d/yr
Frost days (< 0 °C)39 d/yr1 d/yr-38 d/yr
Rainy days (≥ 1 mm)72 d/yr54 d/yr-18 d/yr
Mean relative humidity61 %62 %negligible
Average peak wind13.5 km/h13.7 km/hnegligible

A difference is only reported when it exceeds the resolution of the data. ERA5 is a reanalysis on a grid of about 31 km: two nearby cities often fall in the same cell, and below half a degree you are reading the grid, not the climate.

Temperature month by month

Rainfall month by month

Madrid climateMarrakesh climate