In Morocco, covering the head with a scarf is not mandatory. You will see women with head scarves and women without. Niqabs are scarce and burqas are prohibited by the State. That said, traveling with a scarf is a good idea.
What do locals wear in Morocco?
What Locals Wear in Morocco. As is typical in Muslim countries, long-sleeve, flowing gown-like garments are typical for both men and women. In Morocco and across the Maghreb (Islamic-majority North Africa), unlike some other places, both men and women don a garment with the same name: the djellaba.