Barcelona or Marrakesh: which climate?
Barcelona (Spain) has a humid subtropical 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 Barcelona and to Marrakesh.
Marrakesh is warmer than Barcelona by 3.7 °C in annual average: 18.7 °C against 15.0 °C.
Barcelona gets more rain than Marrakesh: 619 mm per year against 289 mm.
Marrakesh gets 11.0 hours of sunshine per day on average, against 10.2 hours in Barcelona.
Marrakesh has warmed by +2.3 °C between 1940 and 2025, against +2.0 °C in Barcelona. Marrakesh is therefore warming faster than Barcelona. Both trends are statistically significant.
Barcelona averages 3 hot days (≥ 30 °C) and 2 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.
| Indicator | Barcelona | Marrakesh | Difference |
|---|---|---|---|
| Mean daily temperature | 15.0 °C | 18.7 °C | +3.7 °C |
| Average daily high | 18.5 °C | 25.7 °C | +7.2 °C |
| Average daily low | 12.0 °C | 12.5 °C | +0.5 °C |
| Annual rainfall | 619 mm | 289 mm | -330 mm |
| Sunshine / day | 10.2 h | 11.0 h | +0.8 h |
| Hot days (≥ 30 °C) | 3 d/yr | 114 d/yr | +111 d/yr |
| Frost days (< 0 °C) | 2 d/yr | 1 d/yr | negligible |
| Rainy days (≥ 1 mm) | 95 d/yr | 54 d/yr | -41 d/yr |
| Mean relative humidity | 78 % | 62 % | -16 % |
| Average peak wind | 15.5 km/h | 13.7 km/h | negligible |
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.