The best time to visit Morocco is during the spring (March to May) or fall (September to November) when the weather is mild and pleasant.