Being from the United States, and being exposed largely to the Western world in general, I have grown accustomed to certain societal freedoms. Morocco is by no means as hardcore in their mostly Islamic societal practices as, say, Iran or Saudi Arabia, but travelers from the west should be wary of safety concerns that stem from the legal systems that are largely influenced by these religious institutions. For example, the British government advises foreign travelers that Morocco strictly condemns sexual relations outside of marriage, and that many hotels will require legal marriage documentation if travelers are wanting to share a room with their partner. Furthermore, homosexuality is strictly forbidden, so these practices should be entirely avoided for safety reasons, especially in any public settings. The Australian Government also advises travelers to be wary of potential terrorist attacks.
There was a rather famous case within the past year of two Scandinavian women being captured a beheaded by ISIS sympathizers while hiking in the Atlas Mountains. While certainly an extreme and relatively rare case, this is important to note.
While possession of bibles seems to be acceptable, carrying a bible written in Arab script is illegal. Additionally, any acts of evangelicalism or non-Muslim religious conversions are strictly forbidden as well.
While most travelers will venture to Morocco for non-religious purposes, it is important to be wary of the culture and laws of the country that you are entering. Morocco is no exemption to this. While it is a beautiful country in many aspects, it is vastly different from Western nations and cultures.
For additional information on what not to do in Morocco, this youtube channel gives an informative and respectful analysis:
Sources:
https://www.gov.uk/foreign-travel-advice/morocco/local-laws-and-customs
https://smartraveller.gov.au/Countries/africa/north/Pages/morocco.aspx


