Moroccan addresses follow the French pattern: the street with its number, then a five-digit postal code before the city, and no region or province line. Barid Al-Maghrib routes on the postal code and city, and street names often appear in both French and Arabic. Here is the correct structure, a real example, and the mistakes that cause failed deliveries.
A Moroccan address runs recipient, optional company, the street name and number, then the five-digit postal code and city on one line, then the country. There is no region or province line.
Youssef Alaoui personal or business recipientAtlas Import SARL optional, above the street lineAvenue Hassan II street type and name with the number; French forms like Rue, Avenue, Boulevard are standard53000 5-digit code, written before the cityIfrane the city or town, after the postal codeMOROCCO required for inbound international shipmentsThe five-digit postal code sits before the city, French-style, and maps to a delivery zone. Casablanca is 20000, Rabat 10000, and Marrakech 40000; the leading digits track the region, so the code and city should agree.
Format: 5 digits, no spaces or letters, for example 53000. Written before the city on the last line: 53000 Ifrane.
Validation regex: ^\d{5}$
Watch for: a postal code placed after the city (US habit), or a four-digit code borrowed from a neighboring country. Moroccan codes are always five digits.
The country-specific rules that generic autocomplete and single-line address fields tend to get wrong.
Morocco follows the French layout, writing the five-digit code first and the city after: 53000 Ifrane, 20000 Casablanca. A form built for the US city, state ZIP order reverses this and confuses parsers.
Barid Al-Maghrib routes on the postal code and city, not the region or province. Adding a region line such as Fes-Meknes or Casablanca-Settat is unnecessary and can misalign a parsed address. Required fields are street, postal code, and city.
Street types are usually French (Rue, Avenue, Boulevard) and often abbreviated (Bd, Av), while the same street may also carry an Arabic name. Keep one consistent version so carrier records match.
The leading digits of a Moroccan code follow the region: 20000 Casablanca, 10000 Rabat, 40000 Marrakech. A code that does not match the city (a Casablanca 20000 on a Marrakech address) signals a data-entry error.
Each of these passes a basic "is this field filled in" check but fails at the carrier, turning into a redelivery, a return, or an address correction fee.
Ifrane 53000 reverses the expected 53000 Ifrane order.20000 Casablanca code on a Marrakech address is a clear data-entry error.How the major carriers handle Morocco addresses, and what your label needs to satisfy each one.
The national postal operator and assigner of the five-digit codes. Sorting is driven by the postal code and city, so a valid code that matches the city is the most important field.
Amana is Barid Al-Maghrib's express-parcel arm; CTM Messagerie is the widely used intercity courier. Both deliver on street, code, and city, and confirm by phone in dense areas.
International carriers for inbound shipments. Include the country line and keep street names consistent; they charge address-correction fees when the code and city disagree.
Address Guard checks Morocco addresses against carrier and postal databases before the order ships, normalizes the format, and flags the errors that cause failed deliveries. 240+ countries, $0.05 per check.
Part of the Address Guard international address format guide, covering 240+ countries.