Since Marrakech is Morocco’s fourth biggest city and among the state’s popular tourist destinations, you’ll have to spend at least 2-3 days there. That’s enough time to see the major attractions and explore the streets of Medina. But I'd suggest taking at least 5-6 days, in order to see Fez as well.