The best time to visit Morocco is during spring (mid-March to May) or autumn (September to October). The weather is warm but pleasant, unlike the cold temperatures and snow of winter, or the scorching heat of summer.
The coastal regions can be visited year-round. In the winter they are pleasantly mild, while in the summer they bask in temperatures hovering around the mid-20°Cs.
The High Atlas Mountains can also be visited all year round, although it does get cold in winter. The summer may still be a bit hot to embark on any long-distance hikes, but if the heat doesn’t bother you then conditions are fine any time between April and October. Outside these months, there is snow on the peaks, which makes hiking more dangerous, but creates some spectacular panoramas.
The Islamic festival of Ramadan will affect transport in Morocco. The dates vary each year, so it’s worth checking what they are while planning your trip.