Skip to main content
๐Ÿ“‹ Technical

HS Code Morocco
Complete Customs Classification Guide

The HS code determines your customs duties. Learn how to find, verify and avoid costly classification errors.

April 9, 2026 โ€ข 7 min read โ€ข CCM

The HS code (Harmonized System), also called HS tariff or customs nomenclature, is the universal identifier used by customs authorities worldwide to classify goods. In Morocco, this code directly determines your customs duties, import VAT, and even the prior authorizations required. A classification error can lead to reassessments, fines or customs blockages. This guide explains everything you need to know to correctly identify and use the right HS code for your imports to Morocco.

What is the HS code and why is it vital?

The Harmonized System (HS) is an international nomenclature developed by the World Customs Organization (WCO). It classifies all goods traded in the world into sections, chapters, headings and subheadings. More than 200 countries, including Morocco, use it as the basis for their national customs tariff.

Each product receives a unique numerical code of 6 to 10 digits. Morocco generally uses 10 digits, with the first 6 common to all countries that signed the convention.

Why is it so important?

  • It determines the import duty (DI): between 2.5% and 40% depending on the product.
  • It sets the VAT rate on imports (generally 20%, sometimes reduced).
  • It triggers prior authorizations: ONSSA, ANRT, NM certifications, etc.
  • It conditions exemptions under free trade agreements.
  • It is mandatory for any BADR declaration.

Structure of a Moroccan HS code

The HS code is organized in increasingly precise hierarchical levels:

LevelDigitsExample (virgin olive oil)
Sectionโ€”Section III โ€“ Fats and oils
Chapter2 digits15 โ€“ Fats and oils
Heading4 digits1509 โ€“ Olive oil and fractions
HS subheading6 digits1509.10 โ€“ Virgin
Moroccan national code10 digits1509.10.10.00 โ€“ Virgin in packaging โ‰ค 5L

The more precise the code, the more the nomenclature reflects the specific characteristics of the product (material, dimension, use, packaging). The same product can have different codes depending on its exact features.

How to find the right HS code for your product

Several methods exist to identify the correct HS code:

1. The PORTNET portal

PORTNET, the single window for Moroccan foreign trade, offers a keyword search engine in the customs nomenclature. It is the official reference tool: www.portnet.ma. Type the name of your product and explore the matches.

2. The ADII customs tariff

The Administration of Customs and Indirect Taxes publishes its integrated tariff annually on www.douane.gov.ma. You will find complete codes, DI rates, possible exemptions and authorizations required by product.

3. International databases

The WCO website and the European Commission TARIC database allow cross-referencing classifications. Useful for comparing the European and Moroccan position of the same product.

4. Working with a licensed customs broker

This is the safest method for technical or ambiguous products. An ADII-licensed customs broker knows the subtleties of the nomenclature and can justify their classification to customs. Our firm offers this service for free as part of an import quote.

Penalties for incorrect classification

Incorrect HS classification can have severe consequences:

  • Customs reassessment: if customs detects under-classification (code with lower duties), they claim the difference + late interest.
  • Tax fine: can reach 50% to 200% of evaded duties depending on intent.
  • Goods seizure: in the most serious cases, prolonged blockage in the customs zone.
  • Listing as risk operator: systematic physical controls on your future shipments.
  • Clearance delay: a code dispute can extend immobilization by several days, with storage fees.

โš ๏ธ Real case

An importer of electronic parts declared their products under a 5% code instead of the correct 17.5%. Following a post-clearance audit, customs claimed MAD 320,000 in duties + MAD 160,000 in fines, nearly MAD 500,000 in extra costs on an operation initially ยซ optimized ยป. Working with a licensed customs broker from the start would have avoided this disaster.

Best practices to secure your classifications

Here are our expert team's recommendations to avoid any dispute:

  • Always document your choice: technical notes, manufacturer product sheets, photos, analysis certificates. In case of audit, these elements justify your classification.
  • Use binding tariff information: Moroccan customs can issue an official classification opinion upon request, valid for 3 years.
  • Check the explanatory notes: each HS chapter contains notes that specify what is included or excluded. Read them carefully.
  • Compare with competitors: if a similar product is classified differently elsewhere, it's a signal to investigate.
  • Work with a licensed professional: an ADII-licensed customs broker saves time, secures your operations and represents you to customs in case of dispute. See our customs transit page.

Need a licensed customs broker?

Our firm has been ADII-licensed for over 15 years and processes 5,000+ import-export files per year, with a 5.0/5 rating from 26 Google reviews. Free quote within 24h.

Frequently Asked Questions

Your questions, our answers

How many digits does a Moroccan HS code have?

The Moroccan HS code generally has 10 digits: the first 6 are common to all countries signing the Harmonized System (WCO), the next 4 are specific to the Moroccan national nomenclature and identify the product, packaging and use precisely.

Where can I find the official Moroccan customs tariff?

The official customs tariff is published by the Administration of Customs and Indirect Taxes (ADII) on www.douane.gov.ma. The PORTNET portal (www.portnet.ma) also offers a keyword search engine that helps identify the right code.

What happens if I get the HS code wrong?

An error can result in customs reassessment (payment of difference + interest), a fine of 50% to 200% of evaded duties, or even goods seizure in case of suspected fraud. For good faith errors, customs is generally lenient if you are accompanied by a licensed broker.

Can I obtain an official classification opinion?

Yes. ADII issues binding tariff information on request. You provide a complete product technical sheet and the administration sends you the applicable code, valid for 3 years. This is the ideal solution for technical or ambiguous products.

Is the HS code the same as in Europe?

The first 6 digits are identical worldwide (HS convention). Beyond that, each country or customs union adds its own levels. The EU uses 10 digits (TARIC), Morocco also uses 10 digits but with its own national nomenclature. Always verify the specific Moroccan code for your imports.

How to classify a product made of multiple materials?

According to the General Rules of Interpretation (GRI) of the Harmonized System, the material that gives the product its essential character is selected. For example, a bag containing 60% leather and 40% textile will be classified as leather. For complex cases, ask a licensed customs broker or request an official opinion from ADII.