This is the question I am asked more than any other, usually before a guest has booked anything at all, and it deserves a genuinely honest answer rather than either a blanket "of course" or an alarmist list of warnings. So here is what I actually tell people, having guided travellers here for twenty years.
The honest starting point
Morocco welcomes a very large number of international visitors every year, and the overwhelming majority have a trip with no serious incident at all — that has been my consistent experience guiding guests here for two decades. It is, in my honest assessment, a generally safe and genuinely welcoming country to travel in. That said, "generally safe" is not the same as "risk-free," here or anywhere else in the world, and the same common sense that serves you well in any unfamiliar city abroad serves you well here too. I would rather tell you that plainly than oversell either the reassurance or the risk.
Petty theft and pickpocketing
This is real, and it is the actual, practical thing worth being aware of — busy medina lanes, crowded markets, and train stations are where a bag left unzipped or a phone held loosely gets noticed. It is manageable with the same precautions you would take in any busy city: a bag that zips and sits in front of you rather than behind, valuables not flashed unnecessarily, a hotel safe used for anything you do not need on you for the day. I have not found Morocco to be unusually risky in this regard compared with other well-visited countries, but "not unusually risky" still means normal city-level awareness is worth keeping up.
Touts, persistent selling and unofficial guides
This is the thing most guests actually mention afterwards — not danger, but hassle. Persistent sellers, unofficial "guides" offering to show you somewhere for a fee, people insisting a shop or route is closed when it is not — all genuinely common, and best handled with a polite, firm decline rather than a long explanation. "La, shukran" (no, thank you) said clearly and kept walking works better than engaging in back-and-forth. It is a nuisance to get used to in the first day or two, not a safety concern, and it fades into background noise quickly once you know to expect it.
Finding your way in the medina
Getting genuinely lost in a medina is completely normal, not a sign that something has gone wrong — the lanes are built that way, on purpose, and it happens to first-time visitors and seasoned ones alike. An offline map on your phone helps enormously. Someone offering unsolicited help to "guide" you back to a landmark will often expect a tip afterwards; it is fine to accept if you are comfortable with that, and equally fine to politely decline and find your own way.
Women travelling, solo or otherwise
I want to be honest here rather than dismissive: unwanted attention, comments or persistent staring can happen, and solo women travellers do report it more than other guests. It is not universal, and it is rarely more than verbal, but I would not tell a guest it never happens, because that would not be honest. Practical steps genuinely help — dressing with a general awareness of local norms in more conservative or rural settings, walking with confidence, choosing well-reviewed accommodation, and having a local guide or driver on hand for a first trip removes a great deal of this friction specifically. It does not mean the country is unsafe for women to visit — very many women travel here successfully and happily every year — but it is worth going in informed rather than either dismissing the possibility or being frightened by it.
Roads and driving
Mountain roads, particularly passes like the Tizi n'Tichka, ask for real attention — hairpin bends, shared use with slow trucks, and conditions that can change with weather, especially in winter. Driving standards and road conditions vary across the country more than many visitors expect. If you are not confident with mountain driving, a driver who knows the roads removes a genuine source of fatigue and risk, not just convenience.
Food and water
Bottled water is the sensible default, especially outside the main cities. Easing into street food gradually rather than diving in on your first evening lets your system adjust — most guests have no trouble at all, and street food is genuinely one of the highlights of a trip here, but a gradual start is simply good travel sense anywhere unfamiliar.
What actually helps
I am not in a position to give you a current security assessment, and I would not trust anyone offering one casually in an article like this — conditions and official guidance can genuinely change, and the responsible thing is to check your own government's current travel advisory before you go, and again close to your travel dates, rather than relying on anything fixed written here or elsewhere. What I can tell you honestly, from twenty years of doing this: travelling with a trusted local guide removes a great deal of the everyday friction — the touts, the getting lost, the not-quite-sure-if-this-is-normal moments — without pretending to eliminate every possible risk, because no guide anywhere can honestly promise that. That, genuinely, is the honest answer: Morocco has welcomed me and welcomed the guests I have guided for two decades, common sense travels well here as it does anywhere, and a little preparation goes a long way toward a trip with nothing to report but good memories.