Morocco has a hot, dry summer (June–September) and a mild, wet winter (November–March), but the season you get depends on where you stand: in July Marrakech averages highs of 37.7°C while Casablanca on the Atlantic averages 26°C, and in January Ifrane in the Middle Atlas drops below freezing at night while Agadir still reaches 21°C. For most travellers the best months are March to May and late September to November, when the interior is warm rather than scorching and the desert nights are not yet bitter.

Four climates set by ocean, mountains and desert
Morocco's seasons are written by three pieces of geography. To the west, the Atlantic and the cold Canary Current keep the coast cool and often foggy in summer. Across the middle, the Rif and the three Atlas ranges (Middle, High and Anti-Atlas) form a mountain barrier (the Atlas runs about 2,500 km from Morocco into Tunisia) that catches winter rain on its north-western face and peaks at Jbel Toubkal, 4,167 m. To the south-east, beyond that wall, lies the Sahara, which supplies almost no rain and, when the wind turns, a great deal of heat.
Rain arrives with Atlantic depressions between October and April and almost stops in summer. The amount falls off steeply from north to south and from coast to interior. Under the 1991–2020 normals, Fes receives about 488 mm a year, Casablanca 408 mm, Marrakech 221 mm and Errachidia, at the edge of the desert, 133 mm. Tangier, on the Strait of Gibraltar, gets about 736 mm, and the mountain town of Chefchaouen in the Rif gets more than 1,200 mm. A Moroccan January can mean rain in Tangier, blue skies in Marrakech and snow chains on the road to Ifrane. The climate of Morocco is often split into seven sub-zones for exactly this reason.
Casablanca, Essaouira and Agadir: the Atlantic's narrow range
The coast has the smallest gap between seasons. Casablanca averages a January high of 17.6°C and a low of 8.9°C; in August the high is only 26.7°C and the low 21°C. Rain comes on about 46 days a year, almost all of them between October and April, and August records essentially none. Summer mornings often start in a sea fog that burns off by midday.
Farther south the coast gets drier and warmer in winter. Agadir averages a January high of 21.2°C, nearly four degrees warmer than Casablanca, and only about three rainy days a month even in the wettest part of the year, which is why it fills with northern Europeans from December to March. Essaouira, between the two, is known for the steady north-east trade wind that blows hardest from about April to September. It keeps summer highs in the low to mid-20s and makes the town a kitesurfing centre.
When the chergui blows
The coast's mildness breaks when the wind swings round. The chergui (Arabic for "easterly") is a hot, dry wind from the east or south-east that carries Saharan air over the Atlas and down to the Atlantic. It is commonest in summer, and on chergui days coastal towns can jump 15°C or more in a few hours. On 11 August 2023, during a chergui episode, the weather station at Agadir recorded 50.4°C, which the Moroccan General Directorate of Meteorology confirmed as the country's first official reading above 50°C. The previous national record was 49.9°C at Smara. Such spells explain why the Atlantic coast's record highs (42.2°C in Casablanca) sit so far above its averages.
Marrakech and Fes: hot summers on the inland plains
Move 200 km inland and the ocean stops working. Marrakech, at about 460 m on the Haouz plain, averages a July high of 37.7°C, and its record is 49.6°C. Its January days are pleasant at 19.1°C, but nights fall to about 6°C and riads without heating feel cold. The city is also dry: 221 mm a year, with fewer than five rainy days in even the wettest month. Most of its rain falls between November and March.
Fes, at 579 m on the Saïss plain, sits farther north and is wetter (488 mm) but no cooler in summer: its July high is 35.1°C and its January low is 3.7°C, with occasional frost. Both cities reach their best in April and May, when highs run between the low 20s and about 30°C, the plains are green after the winter rain and the High Atlas behind Marrakech is still white. October brings a second window, though the first autumn storms can turn the Fes medina's alleys to mud. For month-by-month detail on the southern capital, see the best time to visit Marrakech.
Ifrane and the Atlas: where winter means snow
Altitude reverses the picture. Ifrane, a town built by the French in 1929 as a hill station at about 1,665 m in the Middle Atlas, averages a January high of only 9.4°C and a low of −1.0°C, and receives around 126 mm of rain and snow in January alone. Its cedar forests and pitched roofs earned it the nickname "Little Switzerland", and it holds the lowest temperature ever recorded in Africa: −23.9°C on 11 February 1935. The small ski area at Michlifen lies just outside the town.

In the High Atlas, Oukaïmeden, about 75 km south of Marrakech, has six lifts between roughly 2,600 m and 3,200 m. It depends entirely on natural snowfall, which has become unreliable, and the season usually runs from January to March in years when snow falls at all. Summer turns the same mountains into Morocco's cool refuge: Imlil, the village at the start of the Toubkal trail, sits at about 1,740 m and is often 10°C cooler than Marrakech. The usual trekking season runs from May to October, and the summit is free of snow by about June. In winter, crossing the Tizi n'Tichka pass (2,260 m) between Marrakech and Ouarzazate can mean snow on the road. More on the ranges themselves is in our guide to the Atlas Mountains.
Merzouga and the Saharan south: big swings between day and night
South of the High Atlas the climate becomes true desert. Ouarzazate receives 115 mm of rain a year and Errachidia 133 mm. Errachidia is the nearest long-record station to Merzouga and the Erg Chebbi dunes, about 130 km to the south-east by road. Its July normals are a high of 39.5°C and a low of 25.8°C. In January the high is a mild 15.9°C, but the low is 2.0°C, and on a clear night out on the sand it can dip below freezing. Merzouga sits several hundred metres lower than Errachidia, so treat these figures as a slightly cool guide: summer afternoons in the dunes can pass 45°C.

That daily swing decides the desert seasons. From June to August, camel treks and dune camps operate mainly at dawn and dusk, and the midday heat is dangerous. From October to April, days are comfortable, but a camp in December or January needs blankets and a warm layer. March and April bring the main risk of sandstorms, when spring depressions lift dust from the hammada. The south has its own calendar: the Rose Festival at Kelaat M'Gouna in the Dades valley marks the May harvest of Damask roses, and the date harvest in the Tafilalet and Draa oases peaks in October.
Ramadan and Eid: dates that move against the seasons
Weather is not the only thing to check before booking. Ramadan follows the Islamic lunar calendar, which is about 11 days shorter than the solar year, so the fasting month moves earlier each year and passes through every season over about 33 years. In 2026 it ran from about 18 February to 19 March. In 2027 it is expected from about 8 February to 8 March, and in 2028 from about 28 January to 25 February. Exact dates depend on the sighting of the new moon and can shift by a day.
During Ramadan, Morocco does not shut down for visitors. Hotels and many tourist restaurants serve food in the daytime, sights stay open, and the evenings after iftar are lively in the Jemaa el-Fnaa and the Fes medinas. Expect shorter opening hours, slower afternoons and few cafés open by day in rural towns, and avoid eating or drinking openly in the street. For the next few years Ramadan falls in late winter, the cool, quieter season, so it overlaps with good desert weather rather than with the spring peak. Eid al-Adha, the larger feast, falls about ten weeks after Ramadan ends, around mid-May in 2027. Many Moroccans travel home for it, so buses and trains are full for several days.
Marrakech against Seville: 670 km apart, different winters
Southern Spain is the obvious comparison, and the numbers show how much Morocco's interior behaves like Andalusia, only more so. Seville lies about 670 km north of Marrakech, across the Strait of Gibraltar. Both cities have hot, dry summers. Seville averages a July high of 36.3°C under the 1991–2020 normals and Marrakech 37.7°C, and their records are close (46.6°C and 49.6°C). Their January nights are almost identical at about 6°C.
The difference is in the days and the rain. Marrakech's January afternoons average 19.1°C against Seville's 16.3°C, and it receives well under half of Seville's yearly rainfall (221 mm against about 540 mm in the 1981–2010 normals). Winter in Marrakech is therefore sunnier and more reliably dry, while Seville's November and December bring more grey, rainy days. The northern tip of Morocco behaves like Spain's southern coast: Tangier's July high of 28.3°C and its 736 mm of rain look more like Cádiz than like Marrakech. The big contrast is that Spain has no equivalent of the Sahara beyond its mountains. A traveller crossing from Seville to Merzouga moves from a Mediterranean climate to a hot desert in less than 750 km as the crow flies, with a snow-capped range in between. For how Spain's own regions compare, read about the climate of Spain.