Morocco country code +212 — call Morocco & get a number.
From a Casablanca landline to a Rabat ministry to a cousin's mobile in Marseille, +212 connects them all. Here are the exact dialing formats from the US, UK, France and Spain, every city code, live mobile prefixes, current time and weather — and how to put a real Moroccan number on your business.
- 17,500+ Businesses
- 99.99% Uptime SLA
- 190+ Countries
- 4.8/5 on G2
Morocco at a glance
The numbers and facts you need before you dial.
What is the country code for Morocco?
Morocco answers to +212. Behind that prefix sits a closed nine-digit plan, which trips people up: inside the country, you dial the number exactly as printed, leading 0 and all. Cross a border and that 0 disappears the moment you add +212 — the rest of the nine digits stay put.
In E.164 form a Moroccan number is +212 plus 9 digits (e.g. +212 522 XXX XXX).
All four mean the same thing — they connect your call to Morocco.
How to call Morocco from anywhere
The recipe never changes: your exit code, then 212, then the nine national digits with the leading 0 stripped off. Master that one substitution and Casablanca, Tangier or a mobile in between all dial the same way.
Full example: +212 05220529 XXX XXXX — drop the local leading 0 when calling from abroad.
Morocco phone number format explained
Read a Moroccan number from its first digit and you already know what it is. A 5 means a fixed line tied to a city; a 6 or 7 means a mobile that travels with its owner. The nine digits stay the same length either way — only that opening digit shifts.
Landline
+212 5XX XXX XXX, always opening with 5. Casablanca example: +212 522 XXX XXX — the 522 is the city's geographic stamp, hidden as 0522 when dialed at home.
Mobile
+212 6XX XXX XXX or +212 7XX XXX XXX. The 6 and 7 ranges are non-geographic, so a Marrakech mobile and a Fès mobile look identical from the prefix.
Morocco area codes — major cities
Drop the local leading 0 when calling from abroad.
| City | Region | Area code |
|---|---|---|
| Casablanca | Casablanca-Settat | 05220529 |
| Rabat | Rabat-Salé-Kénitra | 0537 |
| Marrakech | Marrakech-Safi | 0524 |
| Fès | Fès-Meknès | 0535 |
| Tangier | Tanger-Tétouan-Al Hoceïma | 0539 |
| Agadir | Souss-Massa | 0528 |
| Oujda | Oriental | 0536 |
| Meknès | Fès-Meknès | 0535 |
| Tétouan | Tanger-Tétouan-Al Hoceïma | 0539 |
| Kénitra | Rabat-Salé-Kénitra | 0537 |
| Safi | Marrakech-Safi | 0524 |
| Nador | Oriental | 0536 |
Morocco mobile network prefixes
The prefix after +212 tells you which network issued the SIM — though number portability means it no longer guarantees the operator.
**Maroc Telecom** (IAM)
market leader. Prefixes include 06 ranges (e.g. 0661–0639 blocks), 0750–0769, 0754/0755.
**Orange Maroc** (formerly Méditel)
prefixes include 0612, 0614, 0617, 0660s ranges, 0770–0783, 0786/0787.
**INWI** (Maroc Connect)
prefixes include 060, 0626–0699 blocks, 0700–0724, 0725/0728.
Morocco time zone
Morocco runs on UTC+1 all year — but it is the rare country that winds its clocks back for a reason that has nothing to do with seasons. During Ramadan the whole nation slips to UTC+0 to ease the fasting day, then springs forward to UTC+1 once the month ends. Plan calls around that single annual shift and you'll never be an hour off.
US callers catch Morocco's afternoon between 7 and 11 AM ET. From Paris, Madrid or anywhere on CET, the entire working day lines up — Morocco usually shares your hour. The exception is Ramadan, when that one-hour gap opens up.
Emergency numbers in Morocco
Free to call from any Morocco phone, landline or mobile.
Common mistakes when calling Morocco
Almost every failed international call is a formatting issue, not a network issue.
Calling during Ramadan as if nothing changed
Morocco drops to UTC+0 for the fasting month, so a call you scheduled for "their afternoon" can land an hour earlier than expected. This is the quirk that catches even seasoned diaspora callers.
Carrying the leading 0 across the border
0522 becomes +212 522 once you add the country code; the 0 never survives the trip.
Reading 0522 and 05 as two different things
Casablanca fixed lines live in the 052x range; dial the full nine digits.
Misjudging mobile vs. landline
a 6 or 7 opener is a mobile, a 5 is a landline. The first digit settles it.
Reaching for 011 from outside North America
that exit code belongs to the US and Canada only; the rest of the world uses 00 or +.
Tips to reduce the cost of calling Morocco
Route over VoIP instead of paying carrier international tariffs
a meaningful saving on the heavy France–Morocco and Spain–Morocco corridors.
Hold a Morocco virtual number so customers and family reach you at local Moroccan rates.
Terminate calls over SIP rather than legacy PSTN.
Keep calls inside Moroccan working hours so you connect first time and skip costly redials.
Why businesses get a Morocco virtual number
Morocco's market runs on familiarity — and so does its huge diaspora across France, Spain and Belgium. A local +212 line tells customers on both sides of the Mediterranean that you're genuinely reachable here, not routing them abroad.
Higher answer rates
a Casablanca or Rabat caller ID gets picked up where a foreign number gets ignored.
Lower trust friction
+212 reads as "present in Morocco," not "calling from overseas."
Cheaper inbound
customers and diaspora contacts dial you at local rates.
Centralized routing
catch every Moroccan call and forward it to a team anywhere.
Faster expansion
open the Moroccan market without leasing an office in Casablanca.
Real PSTN presence
a true in-country number, not a forwarding gimmick.
Morocco virtual numbers with My Country Mobile
My Country Mobile hands you real Moroccan DIDs — carrier-grade voice, full programmability, and a local +212 footprint live in minutes rather than weeks.
Local DIDs in major area codes — provisioned in minutes
Call forwarding to any mobile, landline, SIP endpoint, or softphone worldwide
HD voice with G.711, G.729, Opus & AMR-WB — auto-negotiated per call
Sub-150ms latency on major voice corridors via distributed PoPs
99.99% uptime SLA backed by geo-redundant infrastructure & sub-2s failover
WebRTC support for browser-based calling without softphone installs
REST APIs for provisioning, routing & call detail records (CDRs)
Built-in fraud protection with AI anomaly detection & STIR/SHAKEN
24/7 network monitoring and dedicated support
How to get your Morocco virtual number
Most businesses are live within hours, not days.
Choose Morocco and pick the city that fits — a 0522 Casablanca line or a 0537 Rabat one.
Select your plan and clear quick verification.
Wire up forwarding, IVR and routing the way your team works.
Switch it live and start fielding Moroccan calls the same day.
Other country dialing guides
More country codes worth bookmarking.
Get a Morocco virtual number with MCM
Stand up a local +212 number in minutes and start taking Moroccan calls today — across the Kingdom and out to the diaspora.
Morocco +212 — FAQ
Why does Morocco's time zone change during Ramadan?expand_more
— Morocco sits on UTC+1 year-round but shifts to UTC+0 for the fasting month to ease the day, then returns to UTC+1 afterward.
When I call a French Moroccan mobile, do I still use +212?expand_more
— Yes, if the line is registered in Morocco. A Moroccan number stays +212 no matter where its owner happens to be travelling.
What happened to the leading 0 in 0522?expand_more
— It's a domestic trunk digit. Add +212 and it drops, so 0522 123456 becomes +212 522 123456.
How can I tell a Maroc Telecom number from an Orange or INWI one?expand_more
— You often can't by sight — portability lets numbers move between Maroc Telecom, Orange Maroc and INWI, so the prefix shows the original allocation, not today's carrier.
How do I dial Casablanca from the US?expand_more
— 011, then 212, then 522 and the local number — drop the 0 from 0522.
Is a number starting with 7 a mobile?expand_more
— Yes. Both 6 and 7 openers are mobiles; only a 5 is a fixed line.
Which emergency number do I call in Morocco?expand_more
— 19 for urban police, 15 for fire and ambulance, 177 for the rural Gendarmerie, and 112 works from any mobile.
Can a business outside Morocco get a +212 number?expand_more
— Yes — My Country Mobile provisions genuine Moroccan DIDs you can route to any team worldwide.