Marrakech Dress code
Like in any other muslim country, to show a bit of respect to the locals in your dress code is always a good idea. However, Morocco is quite a modern country in that sense and you will see a lot of different attires worn even by local women, please don’t assume that you won’t offend because others dress in a western style
The normal dress code on the street in Morocco is to cover legs, chest and arms for both men and women and although this is much more relaxed than it used to be. It is fine to wear shorts/swimwear in certain places and staff will advise you of the protocol at each place, specially if you planning to travel outside Marrakech.
I have seen some tourists wearing next to nothing, showing complete disregard for local customs. However, Moroccans are very civilised and relaxed. They will not bother you but they may stare. If you like to be stared you can wear what you like, but if you like more anonymity just wear what you would normally wear, taking with you a light pashmima to cover your shoulders/arms & even your head when you feel it would be appropriate.
Advice sent by Jim Parker