I’d suggest you follow the saying “when in Rome do as the Romans do”. In other words, arrive to the beach fully clothed and look around to see what others are wearing. Then adapt. The customs are likely to vary depending on the region, the city and even the beach itself.
Generally speaking though, the consensus on the internet seems to be that bikinis are OK, especially in tourist regions and private resorts. Topless sunbathing is not. Cover up the bikini when away from the beach/pool. Don’t go to the restaurant/market/shop in a bikini.
All in all, if you feel uncomfortable and/or wish to avoid being looked at too much, dress slightly more conservatively than you would back home. This applies to both at the beach and in other everyday life situations. Finally, religious dress codes do not apply to non-religious/foreign women in Morocco. Indeed the country is fairly tolerant towards others, provided you don’t attempt to break the boundaries.
Morocco a very safe place, I visited many times, and I love it. It’s one of the more “European” country in North Africa. Then just respect another culture with some natural rules, you have to be careful to your clothes mainly when you are going to visit religious places.
You can travel without any hassle to about all the main point of interest. Marrakech, Rabat, Fez etc .
Then if you would like to go to the beach in topless for instance is not a good idea, even if you’re an atheist, respect that the people in the building are people of faith who take their beliefs seriously, when you are going to visit religious places and in Ramadan period
I do not recommend to hold value object (Rolex watch for example) if you intend to have a walk on the seaside in the night.
Please check this link , if you are a english speaking user you can try to translate with google translate :
Credit:stackoverflow.com‘