Moroccan number plates by city: the code for each prefecture

Moroccan number plates by city: the code for each prefecture

The number on the right of a Moroccan plate tells you the prefecture or province where the car was registered. Here is how to read a plate, followed by the code for every prefecture and province, region by region.

Photo: J. Patrick Fischer — CC BY-SA 4.0 (Wikimedia Commons)

Published on 30 September 2026

Contents

  1. How do you read a Moroccan number plate?
  2. All 88 codes in numerical order, from 1 to 88
  3. Codes for the Tanger-Tétouan-Al Hoceïma region
  4. Codes for the Oriental region
  5. Codes for the Fès-Meknès region
  6. Codes for the Rabat-Salé-Kénitra region
  7. Codes for the Béni Mellal-Khénifra region
  8. Codes for the Casablanca-Settat region
  9. Codes for the Marrakech-Safi region
  10. Codes for the Drâa-Tafilalet region
  11. Codes for the Souss-Massa region
  12. Codes for the southern provinces
  13. Why this code matters when you rent a car on Loccor

How do you read a Moroccan number plate?

A Moroccan plate reads in three blocks. On the left is a registration number of up to five digits. In the middle is a letter of the Arabic alphabet. On the right is a one- or two-digit number: the code of the prefecture or province where the car was registered.

That last number is the one that points to the city. It refers to an administrative district, not a municipality, so neighbouring towns often share a code, such as Tanger and Asilah (40), or Larache and Ksar El Kébir (42).

Large cities split into several prefectures have more than one code: Casablanca runs from 6 to 13 plus 72, Fès from 15 to 17, Meknès uses 20 and 21, and Marrakech runs from 26 to 28, with 29 going to the neighbouring province of Al Haouz.

Moroccan licence plate 87218 | أ | 7: registration number, Arabic letter and code 7 for Casablanca
The three blocks of a Moroccan plate: 87218 is the registration number, أ the Arabic letter, 7 the prefecture code (Casablanca). Photo: Walser123, CC BY-SA 4.0, Wikimedia Commons

All 88 codes in numerical order, from 1 to 88

1: Rabat · 2: Salé · 3: Salé · 4: Skhirat-Témara · 5: Khémisset, Tiflet · 6: Casablanca · 7: Casablanca · 8: Casablanca · 9: Casablanca · 10: Casablanca.

11: Casablanca · 12: Casablanca · 13: Casablanca · 14: Mohammedia · 15: Fès, Moulay Yacoub · 16: Fès, Moulay Yacoub · 17: Fès, Moulay Yacoub · 18: Sefrou · 19: Boulemane · 20: Meknès.

21: Meknès · 22: El Hajeb · 23: Ifrane, Azrou · 24: Khénifra · 25: Errachidia, Erfoud · 26: Marrakech · 27: Marrakech · 28: Marrakech · 29: Al Haouz (Tahannaout, Asni) · 30: Chichaoua.

31: El Kelâa des Sraghna · 32: Essaouira · 33: Agadir · 34: Inezgane, Aït Melloul · 35: Chtouka-Aït Baha (Biougra) · 36: Taroudant, Oulad Teïma · 37: Tiznit · 38: Ouarzazate · 39: Zagora · 40: Tanger, Asilah.

41: Fahs-Anjra · 42: Larache, Ksar El Kébir · 43: Chefchaouen · 44: Tétouan · 45: Al Hoceïma, Imzouren · 46: Taza · 47: Taounate · 48: Oujda · 49: Berkane, Saïdia · 50: Nador, Beni Ensar, Zaïo.

51: Taourirt, El Aïoun · 52: Jerada · 53: Figuig · 54: Safi · 55: El Jadida, Azemmour · 56: Settat · 57: Khouribga, Oued Zem · 58: Benslimane, Bouznika · 59: Kénitra, Souk El Arbaâ · 60: Sidi Kacem.

61: Béni Mellal, Kasba Tadla · 62: Azilal · 63: Es-Semara · 64: Guelmim · 65: Tan-Tan · 66: Tata · 67: Assa-Zag · 68: Laâyoune · 69: Boujdour · 70: Dakhla.

71: Aousserd · 72: Casablanca · 73: Nouaceur, Bouskoura, Dar Bouazza · 74: Médiouna · 75: M’diq, Fnideq, Martil · 76: Driouch · 77: Guercif · 78: Ouazzane · 79: Sidi Slimane, Sidi Yahya El Gharb · 80: Midelt.

81: Berrechid, Had Soualem · 82: Sidi Bennour · 83: Ben Guerir · 84: Fquih Ben Salah · 85: Youssoufia · 86: Tinghir · 87: Sidi Ifni · 88: Tarfaya.

Codes for the Tanger-Tétouan-Al Hoceïma region

Tanger, Asilah: 40; Fahs-Anjra: 41; Larache, Ksar El Kébir: 42; Chefchaouen: 43; Tétouan: 44; Al Hoceïma, Imzouren: 45; M’diq, Fnideq, Martil: 75; Ouazzane: 78.

Moroccan licence plate 99926 | أ | 40, code 40 for Tangier and Asilah
Code 40, on the right of the plate, stands for the Tangier-Asilah prefecture. Photo: Walser123, CC BY-SA 4.0, Wikimedia Commons

Codes for the Oriental region

Oujda: 48; Berkane, Saïdia: 49; Nador, Beni Ensar, Zaïo: 50; Taourirt, El Aïoun: 51; Jerada: 52; Figuig: 53; Driouch: 76; Guercif: 77.

Codes for the Fès-Meknès region

Fès, Moulay Yacoub: 15 to 17; Sefrou: 18; Boulemane: 19; Meknès: 20 and 21; El Hajeb: 22; Ifrane, Azrou: 23; Taza: 46; Taounate: 47.

Codes for the Rabat-Salé-Kénitra region

Rabat: 1; Salé: 2 and 3; Skhirat-Témara: 4; Khémisset, Tiflet: 5; Kénitra, Souk El Arbaâ: 59; Sidi Kacem: 60; Sidi Slimane, Sidi Yahya El Gharb: 79.

Codes for the Béni Mellal-Khénifra region

Khénifra: 24; Khouribga, Oued Zem: 57; Béni Mellal, Kasba Tadla: 61; Azilal: 62; Fquih Ben Salah: 84.

Codes for the Casablanca-Settat region

Casablanca: 6 to 13 and 72; Mohammedia: 14; El Jadida, Azemmour: 55; Settat: 56; Benslimane, Bouznika: 58; Nouaceur, Bouskoura, Dar Bouazza: 73; Médiouna: 74; Berrechid, Had Soualem: 81; Sidi Bennour: 82.

Codes for the Marrakech-Safi region

Marrakech: 26 to 28; Al Haouz (Tahannaout, Asni): 29; Chichaoua: 30; El Kelâa des Sraghna: 31; Essaouira: 32; Safi: 54; Ben Guerir: 83; Youssoufia: 85.

Codes for the Drâa-Tafilalet region

Errachidia, Erfoud: 25; Ouarzazate: 38; Zagora: 39; Midelt: 80; Tinghir: 86.

Codes for the Souss-Massa region

Agadir: 33; Inezgane, Aït Melloul: 34; Chtouka-Aït Baha (Biougra): 35; Taroudant, Oulad Teïma: 36; Tiznit: 37; Tata: 66.

Moroccan licence plate 27549 | أ | 34, code 34 for Inezgane-Aït Melloul, with the words Kingdom of Morocco
Code 34 stands for Inezgane-Aït Melloul, on the edge of Agadir. Some plates also show the map and star of Morocco on the left, with the words “Kingdom of Morocco”. Photo: Dickelbers, CC BY-SA 3.0, Wikimedia Commons

Codes for the southern provinces

Es-Semara: 63; Guelmim: 64; Tan-Tan: 65; Assa-Zag: 67; Laâyoune: 68; Boujdour: 69; Dakhla: 70; Aousserd: 71; Sidi Ifni: 87; Tarfaya: 88.

Why this code matters when you rent a car on Loccor

On Loccor, a partner agency’s name is only shared once your booking is confirmed. Until then, each agency has a public reference ending in its city’s prefecture code: a reference ending in 26 means an agency in Marrakech, one ending in 40 an agency in Tanger.

So you can tell at a glance which city the car is in, before you even open its page.

Frequently asked questions

What is the registration code for Casablanca?

Casablanca is split into several prefectures and uses codes 6 to 13, as well as 72.

Why do two towns share the same code?

The code refers to a prefecture or province, not a municipality. Tanger and Asilah come under the same prefecture, so they share 40.

Further reading

rent a car in Morocco

rent a car in Tanger

rent a car in Marrakech

rent a car in Casablanca

rent a car in Rabat

rent a car in Fes

rent a car in Agadir

rent a car in Oujda

rent a car in Taza

rent a car in Berkane

Sources

Wikipedia — fr.wikipedia.org

Wikipedia — fr.wikipedia.org

The Smart Choice in Morocco

Ready to Hit the Road in Morocco with Total Freedom?

Written by the Loccor editorial team, the platform connecting travellers with car rental agencies in Morocco.

Browse the cars available to rent in Morocco

Cars available to rent in Tangier

More articles from the guide

Visiting the Hassan II Mosque in Casablanca by car: getting there, guided tours and the Habous quarter

Tangier's beaches by car: Dalia, Achakar, Sidi Kankouch and Ksar Sghir

Saïdia by car: the “Blue Pearl” beach, the Moulouya and the Beni Snassen

The Fez tanneries by rental car: Chouara tannery, where to park and how to visit

Asilah and Larache by car from Tangier: the northern Atlantic coast at your own pace

Ouzoud Waterfalls by Car from Marrakech: The Perfect Day Trip at Your Own Pace