Morocco maintains close relations with Europe and the United States. Morocco belongs to the United Nations, Arab League, Arab Maghreb Union, Organization of Islamic Cooperation (OIC), the Non-Aligned Movement, and the Community of Sahel-Saharan States.
The truth is Marrakech rarely has violent crimes and when it does happen, these cases almost never target tourists. You can walk around the city with good peace of mind knowing that the chances of getting attacked or mugged are very small.
Morocco is a safe country to live in as an expat woman. For local women, the rules are very different and far more conservative than for a woman who is not from the country originally. There is a great expat community in several Moroccan cities such as Marrakech, Casablanca and Fes.
Most travel agencies around the world agree that Marrakech is quite safe to visit however certain precautions must be taken before visiting the famous red city. Although the city is beautiful and a feast for the eyes, its small narrow streets and crowded areas makes it a particularly appealing place for pickpockets.
Don't walk alone at night.You must, however, be careful while walking at night. It is always good to be aware of your surroundings since you may not know the lurks around the corner, particularly in the medina. Petty crimes are rampant, especially targeting tourists unaware of Casablanca and how people live.