There's no dress code in Marrakech, and no law that states you have to wear certain clothes. But Morocco's a Muslim country, so it's considered disrespectful to show too much skin. Unfortunately, this is a bigger problem for women than it is for men, but there's guidelines I'd follow regardless.