Marrakesh, where it is

In Marrakech, the charming imperial city of Morocco, the climate is subtropical semi-desert, with mild winters and very hot summers.
The city is located at 460 meters (1,500 feet) above sea level, an altitude sufficient to lower a bit the nighttime temperatures. On the other hand, owing to the distance from the sea, temperature fluctuations between night and day are remarkable.
The southerly wind descends from the High Atlas Mountains, whose highest point is Jebel Toubkal, 4,167 meters (13,671 feet) high, bringing sudden temperature increases. The wind can lift sand and dust from the desert, reducing visibility.
Here are the average temperatures.
Marrakesh - Average temperatures
MonthJanFebMarAprMayJunJulAugSepOctNovDec
Min (°C)68911141620201815107
Max (°C)182022242731363632272219
Min (°F)434648525761686864595045
Max (°F)646872758188979790817266

Rainfall is scarce, since it amounts to 240 millimeters (9.5 inches) per year, and occurs from October to May, while from June to September, it almost never rains. The rains, albeit rare, occur in the form of downpours or thunderstorms and can occasionally be intense. Here is the average precipitation.
Marrakesh - Average precipitation
MonthJanFebMarAprMayJunJulAugSepOctNovDecYear
Prec.(mm)30353030155125204035248
Prec.(in)1,21,41,21,20,60,200,10,20,81,61,49,8
Days76664111257652

Winter, from December to February, is mild in the daytime, but at night, it can get cold: the temperature quite often drops below 5 °C (41 °F) and sometimes reaches the freezing mark. There are several sunny periods, alternating with periods of cloudy and rainy weather. Towards the horizon, you can see the spectacular peaks of the Atlas Mountains, which are often snow-capped.
When the wind blows from the south, the temperature can approach 30 °C (86 °F) even in winter.

Marrakech, snow-capped Atlas peaks in the background

Spring, from March to mid-June, is pleasantly warm, and the rains become increasingly rarer. At night, it can still get cold in March and sometimes in April, while the south wind can bring the first hot days: the temperature can reach 35 °C (95 °F) in March and April and 40 °C (104 °F) in May.

Summer, from mid-June to mid-September, is very hot, dry and sunny. The temperatures vary according to the period: on certain days, they are acceptable, when highs are slightly above 30 °C (86 °F) and lows can drop to about 15/17 °C (59/63 °F), which means that it can even get a bit cool at night; this happens especially in June and September. Other periods are decidedly scorching, in fact, the maximum temperature can exceed 45 °C (113 °F) for several consecutive days; this happens especially in July and August, which stand out as the hottest months. In the hot summer of 2012, the temperature has reached 47 °C (117 °F) at the end of June, 49.5 °C (121 °F) in July, and 48.5 °C (119.5 °F) in August.

In Autumn, from mid-September to November, the temperature gradually decreases. In October, hot days are still possible, with highs about 35/38 °C (95/100 °F), but the temperature is generally acceptable, warm during the day and cool at night. In the meantime, the first rains occur, which become more frequent in November.

Marrakesh

The amount of sunshine in Marrakech is good all year round, but especially in summer, when clear skies predominate. Here are the average sunshine hours per day.
Marrakesh - Sunshine
MonthJanFebMarAprMayJunJulAugSepOctNovDec
Hours778891011109877

Best Time


The best times to visit Marrakech are spring and autumn, especially in March and April, and from late September to mid-November: in this way, you can avoid the period with the most intense heat, however, you must put into account some rain, and a bit of cold at night, especially in March and November. In May and early June, the temperatures are often acceptable, but you can not rule out some scorching days.
After all, even the winter is not bad, provided that you are equipped for the cold at night, and take into account some rainy days.
In summer, if you go from Marrakech to the sea (see Essaouira), you will find a decidedly cooler climate.