Foreign investment in Morocco

Importing and Exporting in Morocco: Customs and PortNet Guide 2026

Practical guide to Moroccan Customs and PortNet registration, import-export clearance, freight forwarders and foreign-currency payments.

Updated 6 August 2026 · 17-minute read

Importing or exporting through Morocco combines four connected tracks: foreign trade, Customs, technical control and banking. PortNet orchestrates exchanges between the business, Customs, ministries, control bodies, the bank and customs broker; it does not replace product approval or the customs declaration.

Before ordering: classify the goods under the correct HS code, determine whether they are freely traded, licensed or prohibited, calculate duties and tax, confirm product standards and structure payment. A wrong tariff code or Incoterm can block both the goods and the funds.

1. Prepare the business

The company should be registered, hold its ICE and tax identifiers and maintain a professional bank account. Its corporate purpose must cover the planned activity. Regulated goods may require a sector licence.

Before pricing, determine HS classification, origin, customs value and Incoterm. These drive import duty, VAT, trade remedies, licences, standards and preferential tariffs under Morocco's trade agreements.

2. Joint Customs and PortNet registration

The operator first creates a subscription account through PortNet and then subscribes to Moroccan Customs/ADII and the PortNet Single Window. The same area tracks BADR registration, company information and access rights.

  1. Create the business account. Enter legal identifiers and authorised representatives.
  2. Subscribe to Customs/BADR. Validate the operator and approved users.
  3. Activate PortNet. Configure roles, bank and signing access.
  4. Appoint the customs broker. Register the power of attorney authorising it to act in BADR.
  5. Test the workflow. Confirm access to trade titles, documents, alerts and payment functions.

The customs broker's role

The broker or freight forwarder normally coordinates transport, manifest data, the Single Goods Declaration (DUM), documents, inspection, duty assessment, release and collection. A customs declarant must hold the necessary approval or authority and an operator mandate.

Responsibility remains: outsourcing does not eliminate the trader's exposure. The importer or exporter remains responsible for invoices, tariff classification, origin, value, permits and compliance. Sensitive entries should require operator approval and a complete audit trail.

3. Import procedure

  1. Classify the product. HS code, origin, value, licensing, standards and sanitary or technical controls.
  2. Create the import title in PortNet. An import undertaking for freely importable goods; an import licence for controlled goods.
  3. Domicile the title with the bank. The selected bank controls and processes foreign payment.
  4. Arrange freight and insurance. Invoice, packing list, transport document, origin and insurance must match the Incoterm.
  5. File the DUM. The broker submits the declaration and supporting documents in BADR.
  6. Complete controls. Documentary or physical Customs checks and any ONSSA, industry or other technical inspection.
  7. Pay or secure duties and taxes. Import duty, VAT and other applicable charges.
  8. Obtain release and collect goods. After Customs, control-body and terminal clearance.
  9. Close the title. Customs imputation reconciles imported goods with the bank payment.

Release of funds and supplier payment

Bank release of funds is distinct from Customs release of goods. The domiciliary bank releases foreign currency under the import title, contract, invoice, payment method and evidence required by the 2026 General Instruction on Foreign Exchange Transactions.

Payment methodRuleRisk control
DepositUp to 30% of total import value where provided by the contract.Provide repayment security or a documented carry-forward if the order fails.
Prepayment100% up to the foreign-currency equivalent of MAD 200,000 per invoice, plus other IGOC cases including certain categorised operators and foreign-currency accounts.Verify supplier, bank details, sanctions and shipment evidence.
Documentary creditPayment against documents complying with the credit.Controls documents, not the physical quality of goods.
Documentary collectionDocuments released against payment or acceptance.Plan for refusal and stranded goods.
Post-arrival paymentProcessed against invoice and import/imputation documents.Reduces prepayment risk but must meet the contract due date.

A mismatch in supplier, currency, invoice or amount may block payment. Cancellations, credit notes, shortages and unused advances must be documented, and refundable funds must be repatriated under foreign exchange rules.

4. Export procedure

  1. Check goods and destination. Moroccan restrictions, destination rules, sanctions, standards and customer due diligence.
  2. Obtain any export licence. Controlled goods require a PortNet application.
  3. Structure the sale. Contract, Incoterm, foreign-currency price, credit insurance and payment method.
  4. File the export DUM. The broker submits Customs, origin and control documents.
  5. Complete inspection and loading approval. PortNet coordinates the export tracking file and control results.
  6. Prove origin. Obtain preferential origin evidence where conditions are met.
  7. Ship and present documents. Deliver the contractual set to carrier, bank and customer.
  8. Repatriate proceeds. Receive foreign currency through an authorised banking channel and reconcile it to the declaration.
Repatriation deadline: under the 2026 rules, full proceeds of a firm sale of goods must generally be repatriated within 150 days from registration of the customs declaration. Discounts, non-payment, disputes and consignment sales require their own evidence and treatment.

Customs territory versus Industrial Acceleration Zone

MovementClassificationEffect
Foreign country → customs territoryImportTitle, DUM, controls, duties and tax
Customs territory → foreign countryExportExport DUM, controls and proceeds repatriation
Foreign country → ZoneZone entryCustoms formalities and destination control, with relief subject to conditions
Customs territory → ZoneExport for trade and exchange purposesExit evidence and corresponding customs/tax treatment
Zone → foreign countryRe-export/exportStock, origin and exit controls
Zone → customs territoryImportDuties, VAT, controls and restrictions based on goods and origin

A zone does not remove Customs; it changes where and when taxation occurs. Businesses need materials accounts and traceability for entries, processing, waste, local sales and exits.

Additional points worth securing

Frequently asked questions

Does PortNet replace Customs?

No. PortNet orchestrates the process; BADR handles the declaration and ADII retains its control and assessment powers.

Can goods be ordered before PortNet activation?

It is risky. Goods may arrive before the operator can obtain its title, approvals, declaration or bank payment.

Does the customs broker guarantee classification?

No. The broker advises and declares, but the operator must validate data and should seek advance guidance for sensitive classification.

Is importing into a free zone formality-free?

No. The special regime still requires Customs control, zone admission, traceability and product-specific compliance.

Legal information: formalities depend on the goods, origin, value, customs procedure, transport and payment. Classification and permits should be confirmed before shipment.

Official sources: Joint Customs-PortNet registration · PortNet import titles · Foreign Exchange Office — imports · Foreign Exchange Office — exports.

Secure your first shipment

Nerra Law Firm can review contracts, permits, broker authority, trade titles, payment terms and supply-chain liabilities.

Prepare your import-export operation