If you are staying in a riad in the centre of the medina and walk back to your hotel at night, it can seem a little unsafe. The main reason for this is that the principle streets in the city centre are very badly lit and the narrow winding alleyways are generally in complete darkness.
To avoid this, you can always stay in a hotel outside the medina and go by cab from Jamaa el Fna Square, although missing out on the riad experience would be a shame.
When the sun is out and the medina is packed with people, you will feel at ease and you can enjoy Marrakech in all its splendour.
Marrakech is a completely safe city in Morocco. Like in other destinations, you may find many people asking you for money on the street and it is always advisable to be careful with pickpockets, but these are the biggest problems you may encounter.
Compared to Casablanca and Fez, Marrakech is one of the safest cities in the country.
Troubled areas in Marrakech
The only troubled area in Marrakech is the Jewish neighborhood, on the south side of Jemaa el-Fnaa according to locals.