Of all the places we visited in Morocco, Marrakech is the most liberal because of the number of tourists. Generally, shorts in Morocco are not worn. If you are only traveling to Marrakech, shorts are more acceptable. For women, I would still recommend shorts that go to the knee or just above.