Generally, spring (March to May) and autumn (September to November) are considered the best times to travel to Morocco due to the pleasant weather.