Safety is the number one thing to keep in mind when traveling in Morocco. Keep in mind even though Moroccans are peaceful people ,the country has it’s share of hazards:
Tangier is a relatively safe and peaceful city. The only trouble one may encounter is the persistent touts, occasional junkies, or the con-men ready to overcharge you. You will encounter these characters mostly in and around the medina and along the west side of beach front promenade.
The safe area at night is the city center. The Medina is not safe at night.
As long as one doesn’t make oneself a target there usually won’t be any trouble. If one goes looking for trouble they will find it. Most of the trouble is in the Medina or on the beach at night.
Common sense goes a long way in Tangier.