After some local incidents of crime in Casablanca, security and safety has improved remarkably; ...
Arabic is the official language of Morocco. Nevertheless, due to its close relations with France in recent times, almost all of the Moroccan population speak French. In the parts of the north and the on the Atlantic coast, some people speak Castilian Spanish.
You should try to learn some basic expressions in Arabic if you can for your visit to Marrakech or Morocco. This is seen a a gesture of respect from the inhabitants and makes integration into their society and culture a lot easier.
In any case, you should know that in Morocco there is an impressive linguistic variety and that the two "official" languages, are for many, only secondary.
People are educated through classic Arabic. All the information and administration is in classic Arabic too. The daily spoken language is a Moroccan dialect known as “Ttamazight”, which is of Berber origin. It’s also spoken in the Riff, Atlases and the Souss.
Most of the population speak French. This is also the language of the mass media, advertising publicity etc...