The annual average temperature in Marrakech is 68°F (20°C) and the city has a semi-arid climate, therefore; you will rarely be cold in this part of Morocco.
Marrakech in summer
July and August are the hottest months in Marrakech with an average high of 98°F (36.6°C) and an average low of 68°F (20°C). The record high is over 120°F (49°C), so if you travel to Marrakech during summer, be prepared to be hot.
It practically never rains during this season. However, there are sometimes sand storms.
Marrakech in winter
The average temperature during winter (December to February) is 55.4°F (13°C) with minimums of 42.6°F (6°C). When the sun is out you can explore the city in a t-shirt or a with a thin jumper, but at night the temperatures drop drastically, so you should also take a jacket with you. Marrakech has relatively wet winters, so it might be a good idea to bring an umbrella just in case.
Marrakech in spring and autumn
The best months to explore Marrakech, in our opinion, are March, April, October and November. During the day you will probably be a little hot, but it is not uncomfortable to visit the city. At night, the weather averages are very enjoyable.