Morocco has a varying geography with five main climatic regions.
The Mediterranean coast has a climate comparable to southern Spain – hot in the summer months, from April to October, and mild in the winter months, from November to March.
The Atlantic coastline has a year-round climate, thanks to the effect of the Atlantic Ocean. Coastal towns such as Essaouira have a small risk of rain in the winter, while the temperature is hottest in the summer, though the wind keeps the temperature down and evenings can be cool at any time of year.
The foothills of the Atlas mountains, including Marrakech, can get very hot in summer and cold in winter. The most pleasant time to visit is in spring and autumn.
The High Atlas mountains rise to over 3,960 metres and can be snow-covered well into summer. The best time to visit is between March and November, although from December until February the days can be crisp and sunny, with the nights tending to be very cold.
The Sahara desert region in the south has intense heat during the day while the temperature at night drops dramatically, especially in the middle of the winter from December to February.