What Morocco's country code is, and how to write it
Morocco's country code is +212. It replaced the older +212 7 and +212 8 splits years ago, and every Moroccan number now sits under the same +212 prefix.
In writing, you will see it as:
- +212 6 12 34 56 78 — international format, the one to save in your phone
- 00212 6 12 34 56 78 — the same number using the 00 international access code
- 06 12 34 56 78 — how the number is written and dialled inside Morocco
The difference between the last two is the leading zero. Moroccan numbers are written locally with a zero in front; that zero is dropped when you dial from abroad. So 06 12 34 56 78 becomes +212 6 12 34 56 78.
How to dial Morocco from your country
The pattern is the same everywhere: exit code + 212 + number without the leading zero.
| Calling from | Dial |
|---|---|
| UK, Ireland, most of Europe | 00 212 6 12 34 56 78 |
| US and Canada | 011 212 6 12 34 56 78 |
| Australia | 0011 212 6 12 34 56 78 |
| Japan | 010 212 6 12 34 56 78 |
| Another Moroccan number | 06 12 34 56 78 (no +212 needed) |
If you are calling from a mobile, the simplest method is to save the number in international format with the plus sign. Your phone then inserts the right exit code automatically, wherever you are.
What the first digits of a Moroccan number tell you
Moroccan numbers are ten digits long including the leading zero. The first two digits say what kind of line it is:
- 06 and 07 — mobile numbers, shared by Maroc Telecom, Orange and inwi
- 05 — landlines and fixed lines, split by region
- 08 — some business and service numbers
Mobile numbers are portable, so the prefix no longer reliably tells you which network a person uses. That matters less than it used to: calls between Moroccan networks are generally included in local plans, and visitors rarely need to know.
Calling Morocco from a Moroccan eSIM
If you are travelling in Morocco with a travel eSIM, you usually do not need to dial +212 at all. Once your eSIM is active and connected to a Moroccan network, you dial Moroccan numbers exactly as a local would: 06 12 34 56 78.
What you do need is data, because most travellers now call over WhatsApp, FaceTime or similar apps rather than the voice network. A data eSIM covers that. Our guide to eSIM for Morocco explains how the plans work, and Morocco network coverage shows which network reaches which region — useful if you are heading beyond the cities.
If you are still deciding between a travel eSIM and a SIM bought on arrival, Marrakech Airport SIM Card covers what is actually available at the airport and what it costs.
Dialling out of Morocco to another country
From a Moroccan line, dial 00, then the destination's country code, then the number. For example, to call the UK: 00 44 followed by the number without its leading zero. To call Egypt: 00 20. To call South Africa: 00 27.
If you are travelling across more than one of these countries, our guide to one eSIM across Morocco, Egypt and South Africa explains when a single regional plan makes sense and when separate country plans are simpler.
Emergency numbers in Morocco
Morocco uses short emergency numbers, dialled without any prefix:
- 15 — medical assistance (SAMU)
- 19 — police
- 17 — gendarmerie, for incidents outside city limits
- 15 also reaches the fire service in many areas
These work from any phone with a signal, including a travel eSIM, and do not need credit.
Common mistakes when dialling Morocco
- Keeping the leading zero. +212 06 12 34 56 78 will not connect. Drop the zero: +212 6 12 34 56 78.
- Using the wrong exit code. 00 works from most of Europe; the US and Canada use 011.
- Confusing +212 with +20. Morocco is +212; Egypt is +20. They look similar and are easy to mix up.
- Assuming a Moroccan number works abroad. A local Moroccan SIM will usually roam, but charges apply. A travel eSIM avoids that entirely.
Do you need a Moroccan number at all?
For most trips, no. If your reason for calling Morocco is to reach a riad, a tour operator or a taxi, WhatsApp is the default channel in Morocco and almost everyone uses it. A data eSIM gives you that, plus maps, translation and bookings, without a contract or ID registration.
If you do need a local voice number — for a longer stay, a rental agreement or a local bank — you will need a physical Moroccan SIM, which requires ID registration. Our guide to eSIM or physical SIM compares the two honestly.
For a short trip, the practical answer is a Morocco eSIM installed before you fly, active when you land. You keep your home number for calls and messages, and you get Moroccan data from the moment you switch the eSIM on.




