Finish in Marrakech for the shorter version. The two cities alone make a rich comparison.
Add time within the cities or stay longer beyond the mountains instead of extending the driving circuit.
Every transfer is allocated separately from the sightseeing days. Arrival at the first base and departure from the last are outside this outline.
Fez
Use an informed walk to understand how streets, workshops, religious buildings and domestic spaces relate. A craft visit is most rewarding when it explains a material or process, rather than simply presenting a shopping stop. Leave a later period for exploring a smaller area at your own pace.
Suggested base: Fez. Allow 3 days here.
Marrakech
Alternate the busy public spaces with gardens, courtyards and a museum. Give the medina a manageable walking circuit and leave time to stop. The city becomes more interesting when the experience is not reduced to its busiest square.
Suggested base: Marrakech. Allow 3 days here.
Aït Benhaddou
Read the fortified settlement through its materials, entrances and hillside form. Walk slowly enough to notice how earthen walls and the terrain work together. An overnight nearby allows the visit to be more than a stop on a long return drive.
Suggested base: Aït Benhaddou or Ouarzazate. Allow 2 days here.