The best time to visit Marrakech for pleasant weather is during the spring (March to May) and fall (September to November) when temperatures are milder. Summers can be hot, while winters are cooler.