There aren't really any rules! It's much more difficult to find what to wear in Marrakech as a men, but it's much simpler. A cool shirt, shorts, Birkenstocks or Converse and sunglasses will do the job nicely. Dress for the heat and avoid anything too 'out there' that may attract attention.