The best time to visit Marrakech is in the spring and autumn when temperatures are consistently pleasant without getting unbearably hot. May and September are the most ideal months to visit as rainfall tends to be lower than the other autumn and spring months.