Countries API - CountriesDB

Morocco

ISO 3166-1 country codes and official ISO 3166-2 subdivisions for Morocco. Use them in forms, validation, and CountriesDB integrations.

About Morocco codes

Need Morocco (MA) for a checkout form, shipping zone, or backend validation? This page summarizes the ISO 3166-1 country codes and official subdivisions developers use with CountriesDB.

This guide lists 87 official ISO 3166-2 subdivisions for Morocco. These are the same codes CountriesDB serves through widgets and the Backend Data API.

For production, use the CountriesDB country/subdivision widget or fetch Morocco from the Data API and validate codes server-side instead of copying values from this page.

ISO codes

  • Alpha-2MA
  • Alpha-3MAR
  • Numeric504
  • Independenttrue
  • StatusOfficially assigned

Official subdivisions (87)

Official ISO 3166-2 codes for Morocco. Use these values in region/state selects and server-side validation, not informal or marketing region names.

CodeNameType
MA-AGDAgadir-Ida-Ou-Tananeprefecture
MA-HAOAl Haouzprovince
MA-HOCAl Hoceïmaprovince
MA-AOUAousserd (Western Sahara)province
MA-ASZAssa-Zag (partially Western Sahara)province
MA-AZIAzilalprovince
MA-BEMBéni Mellalprovince
MA-05Béni Mellal-Khénifraregion
MA-BESBenslimaneprovince
MA-BERBerkaneprovince
MA-BRRBerrechidprovince
MA-BODBoujdour (Western Sahara)province
MA-BOMBoulemaneprovince
MA-CASCasablancaprefecture
MA-06Casablanca-Settatregion
MA-CHEChefchaouenprovince
MA-CHIChichaouaprovince
MA-CHTChtouka-Ait Bahaprovince
MA-12Dakhla-Oued Ed-Dahab (Western Sahara)region
MA-08Drâa-Tafilaletregion
MA-DRIDriouchprovince
MA-HAJEl Hajebprovince
MA-JDIEl Jadidaprovince
MA-KESEl Kelâa des Sraghnaprovince
MA-ERRErrachidiaprovince
MA-ESMEs-Semara (partially Western Sahara)province
MA-ESIEssaouiraprovince
MA-FAHFahs-Anjraprovince
MA-FESFèsprefecture
MA-03Fès-Meknèsregion
MA-FIGFiguigprovince
MA-FQHFquih Ben Salahprovince
MA-GUEGuelmimprovince
MA-10Guelmim-Oued Noun (partially Western Sahara)region
MA-GUFGuercifprovince
MA-IFRIfraneprovince
MA-INEInezgane-Ait Melloulprefecture
MA-JRAJeradaprovince
MA-KENKénitraprovince
MA-KHEKhémissetprovince
MA-KHNKhénifraprovince
MA-KHOKhouribgaprovince
MA-02L'Orientalregion
MA-LAALaâyoune (Western Sahara)province
MA-11Laâyoune-Sakia El Hamra (partially Western Sahara)region
MA-LARLaracheprovince
MA-MDFM’diq-Fnideqprefecture
MA-MARMarrakechprefecture
MA-07Marrakech-Safiregion
MA-MEDMédiounaprovince
MA-MEKMeknèsprefecture
MA-MIDMideltprovince
MA-MOHMohammadiaprefecture
MA-MOUMoulay Yacoubprovince
MA-NADNadorprovince
MA-NOUNouaceurprovince
MA-OUAOuarzazateprovince
MA-OUDOued Ed-Dahab (Western Sahara)province
MA-OUZOuezzaneprovince
MA-OUJOujda-Angadprefecture
MA-RABRabatprefecture
MA-04Rabat-Salé-Kénitraregion
MA-REHRehamnaprovince
MA-SAFSafiprovince
MA-SALSaléprefecture
MA-SEFSefrouprovince
MA-SETSettatprovince
MA-SIBSidi Bennourprovince
MA-SIFSidi Ifniprovince
MA-SIKSidi Kacemprovince
MA-SILSidi Slimaneprovince
MA-SKHSkhirate-Témaraprefecture
MA-09Souss-Massaregion
MA-TNTTan-Tan (partially Western Sahara)province
MA-TNGTanger-Assilahprefecture
MA-01Tanger-Tétouan-Al Hoceïmaregion
MA-TAOTaounateprovince
MA-TAITaourirtprovince
MA-TAFTarfaya (partially Western Sahara)province
MA-TARTaroudanntprovince
MA-TATTataprovince
MA-TAZTazaprovince
MA-TETTétouanprovince
MA-TINTinghirprovince
MA-TIZTiznitprovince
MA-YUSYoussoufiaprovince
MA-ZAGZagoraprovince

Frequently asked questions

What is the ISO 3166-1 code for Morocco?
Morocco uses ISO 3166-1 alpha-2 MA, alpha-3 MAR, and numeric 504. These codes show up in forms, shipping, banking, and APIs.
How many official ISO 3166-2 subdivisions does Morocco have?
CountriesDB lists 87 official ISO 3166-2 subdivisions for Morocco (states, provinces, regions, or equivalent). Use them when you validate region selects and shipping zones.
How do I use Morocco country and subdivision data in a form?
Use the CountriesDB widget or Data API to fill country and subdivision selects for Morocco, then validate submitted codes with the Validation API so alpha-2 and ISO 3166-2 values stay consistent.

Use Morocco in your app

Add CountriesDB country and subdivision selects with the widget docs, or call the Backend Data API for Morocco (MA) and validate submissions with the Validation API. Guides stay in sync with the same dataset your project keys already use. widget docs.