The best time to visit Morocco depends on what you want to see and do during your trip. Here's a quick overview of the different seasons in Morocco:

Spring (March to May): This is a great time to visit Morocco if you're interested in exploring its cities, as temperatures are mild and comfortable. This is also the best time to see the country's stunning wildflowers, particularly in the Atlas Mountains.

Summer (June to August): Summer is the peak tourist season in Morocco, and temperatures can reach upwards of 100°F (38°C). While this is a great time to visit the beach, it can be very hot and uncomfortable in the cities.

Autumn (September to November): Autumn is another good time to visit Morocco, as temperatures start to cool down and the crowds have thinned out. This is a great time to visit the cities, as well as the desert, as the weather is more comfortable.

Winter (December to February): Winter can be quite cool in Morocco, especially in the evenings, but it's a great time to visit the country if you're interested in outdoor activities, such as skiing and snowboarding in the Atlas Mountains.

No matter what time of year you choose to visit Morocco, be sure to bring appropriate clothing for the weather, as well as sun protection, as the sun can be quite strong.