Home / Insights / Morocco-Spain trade via a Spanish SL
Rules of origin · PEM · Ceuta and Melilla · Import VAT

Morocco–Spain trade through a Spanish company: origin, customs and two cities that break the map.

Fourteen kilometres of water, a preferential trade agreement, and a customs geography that surprises almost everyone. Spain contains territory inside the EU but outside its customs union, and outside its VAT area — and both of those places border Morocco.

The customs map ↗ Origin proofs, the 2026 rule change, VAT and why a Spanish SL
New from
1 Jan 2026
Revised pan-Euro-Mediterranean rules of origin apply.
Morocco requires
"revised rules"
Stated on the proof of origin, or it is not accepted.
Outside the union
Ceuta, Melilla
Spanish, EU, and outside both the customs union and the VAT area.
The short answer

Why route Morocco–Spain trade through a Spanish company?

Because someone has to be the importer of record in the European Union, hold an EORI number, account for import VAT, and take responsibility for the customs declaration and the origin claim. A Spanish SL does all four, gives you a VAT registration for onward sales across the single market, and puts the compliance burden on an entity rather than on a foreign supplier dealing with a customs authority it has no standing before.

Trade between the two countries runs under the EU–Morocco Association Agreement, which gives preferential tariff treatment to goods that qualify as originating. "Qualify" is the operative word: preference is not a function of where a shipment sailed from, but of where the goods were produced or sufficiently transformed, and of whether you can prove it in the prescribed form.

Four territories, three different customs statuses
TERRITORY EU CUSTOMS UNION EU VAT AREA DUTY? Mainland Spain Peninsula and Balearics IN IN Import duty Canary Islands Spanish, EU, Atlantic IN OUT IGIC, no VAT Ceuta and Melilla Spanish cities on the African coast OUT OUT IPSI Morocco Third country, association agreement OUT OUT Preference A shipment from Morocco to Ceuta crosses a border into Spain without entering the EU customs union.
The consequence. Goods moving between Ceuta or Melilla and mainland Spain are treated as crossing a customs frontier, even though both ends are Spanish. Anyone planning a supply chain on the assumption that "Spain is Spain" will discover this at the worst point, which is after the goods have shipped.

Origin: the only thing that unlocks the tariff.

Preference under the Association Agreement depends on originating status, and originating status has to be evidenced in a form the importing customs authority accepts. There are three, and which one you use depends on who you are and how much you are shipping.

Choosing the proof of origin
EUR.1 Movement certificate Issued and stamped by the exporting country's customs authority Invoice declaration Made by any exporter for small consignments, commonly up to EUR 6,000 REX Registered exporter self-certifies on the invoice. No value limit, registration required NEW FROM 1 JANUARY 2026 The proof must say "revised rules" Revised pan-Euro-Mediterranean rules now apply. Morocco accepts proofs issued under them only where that wording appears on the document.
A wording problem, not a substance problem. The revised rules make it easier in many cases to qualify goods as originating. But a proof that omits the required wording is refused on its face, and the shipment loses preference regardless of whether the goods actually originate.

Cumulation, and why it favours this corridor.

The pan-Euro-Mediterranean system, established in 2005, lets materials from participating countries count towards originating status rather than breaking it. Between the EU and Morocco — along with Algeria and Tunisia — full cumulation operates, which is the most generous form.

What cumulation allows

Work done in one country counts in the other

Under full cumulation, processing carried out in the partner country can be taken into account when deciding whether goods have been sufficiently transformed. A production chain split across the strait is not automatically disqualified by the split.

What it does not allow

Origin by transit

Shipping third-country goods through Morocco confers nothing. Preference attaches to production and transformation, not to routing, and claims that rest on the itinerary rather than the process fail on verification.

What the Spanish company actually does.

The importer's sequence
Set-up
EORI numberThe identifier every economic operator needs to lodge a customs declaration in the EU. Obtained once, tied to the Spanish company's tax number.
Set-up
Correct activity codes and VAT registrationImport and wholesale activity has to be declared on the census form. For onward sales to other member states, registration in the intra-EU operators register comes next.
Each shipment
Declaration, classification, origin claimTariff classification decides the duty rate; the origin proof decides whether preference applies to it. Both are the importer's responsibility, even when a broker files.
Each period
Import VAT, and the deferral optionImport VAT is payable on entry — but companies filing monthly can opt to defer it to the VAT return instead of paying at the border, which removes the cash-flow gap entirely.
The option that changes working capital

Deferred import VAT is the single most valuable thing on this list.

Paying VAT at the border and reclaiming it later ties up cash on every consignment. Spain allows monthly VAT filers to account for import VAT on the return instead, so the charge and the deduction land in the same period. For a business importing continuously, this is worth more than most tariff planning — and it depends on being registered for monthly filing, which is a decision made at set-up.

Where consignments go wrong.

Six recurring failures
Most common
Origin proof missing the wordingSince January 2026, proofs under the revised rules must say so. Without it, preference is refused at the counter.
Expensive
Wrong tariff classificationSets the duty rate and the controls. Corrections come with retrospective duty and interest.
Structural
Assuming Ceuta is insideCeuta and Melilla are outside the customs union and the VAT area. Movements to the mainland are customs movements.
Cash
Paying import VAT at the borderAvoidable through the deferral scheme, which requires monthly filing status arranged in advance.
Sector
Ignoring non-tariff controlsFood, plant, animal and product-safety requirements apply independently of tariff preference. A zero duty rate does not mean an open door.
Later
No document retentionOrigin claims are verified after clearance, sometimes long after. The supporting evidence has to still exist.

Two structures.

Spanish SL as importer

You control the EU side

The company is importer of record, holds the EORI, reclaims import VAT, sells onward across the single market under its own VAT number, and builds a compliance record with Spanish customs. It also creates a Spanish taxable presence, deliberately and on your terms.

Selling to a Spanish buyer instead

Simpler, and you give up the margin

The Spanish customer imports and takes the customs risk, the VAT position and the distribution margin. Appropriate for occasional trade; limiting if Spain or the EU is the market you are actually building.

Note what the first option brings with it. An importing SL is a Spanish taxable entity with corporate tax, accounts and filings — and if the Moroccan parent starts holding stock or making sales through it, the permanent establishment question arrives too, which under the 1978 treaty has its own unusual answers.

Where this becomes a decision

The set-up choices decide the cash flow for years.

Monthly filing status, activity codes, intra-EU registration and where the importer of record sits are all settled at formation, and each is awkward to change later. We set the Spanish entity up for the trade you actually intend to do.

Book a consultation ↗
Terms in this trade
Association Agreement
The EU–Morocco framework under which preferential tariff treatment is granted.
Rules of origin
The tests deciding whether goods count as originating, and therefore whether preference applies.
EUR.1
A movement certificate issued and stamped by the exporting country's customs authority.
REX
The registered exporter system, under which a registered operator self-certifies origin on the invoice.
PEM
The pan-Euro-Mediterranean system of origin rules and cumulation, in place since 2005 and revised with effect from 2026.
Full cumulation
The form of cumulation operating between the EU and Morocco, under which processing in either counts towards origin.
EORI
The economic operator registration and identification number, required to lodge customs declarations in the EU.
IPSI
The indirect tax applying in Ceuta and Melilla in place of VAT.
IGIC
The indirect tax applying in the Canary Islands in place of VAT.
Importer of record
The party legally responsible for the declaration, the duty and the accuracy of the origin claim.
Frequently asked
Do goods from Morocco enter Spain duty-free?
Only where they qualify as originating under the EU–Morocco Association Agreement and the claim is evidenced in an accepted form. Preference depends on production and transformation, not on where the shipment sailed from, and separate non-tariff requirements — food safety, plant and animal health, product conformity — apply regardless of the tariff outcome. Some agricultural products are subject to their own arrangements.
What changed on 1 January 2026?
The revised pan-Euro-Mediterranean rules of origin took effect. They make it easier in many cases to qualify goods as originating. The practical catch is documentary: Morocco accepts proofs issued under the revised rules only where the wording "revised rules" is clearly stated on the proof. A correct claim on a proof missing that wording is refused.
EUR.1, invoice declaration or REX — which do I need?
EUR.1 is the classic certificate, issued and stamped by the exporting country's customs authority. An origin declaration on the invoice may be made by any exporter for small consignments, commonly up to 6,000 euro in value. Above that, the exporter needs approved status or registration in the REX system, which allows self-certification without a value limit. Which applies depends on the exporter's status and the consignment value, so confirm it before shipping rather than at the border.
Are Ceuta and Melilla part of the EU customs union?
No. Both are Spanish cities and part of the European Union, but they sit outside the customs union and outside the VAT territory, applying a local indirect tax instead. Goods moving between them and mainland Spain are treated as crossing a customs frontier. The Canary Islands are different again: inside the customs union but outside the VAT area, with their own indirect tax.
Do I need a Spanish company to import from Morocco?
Not strictly — a Spanish customer can import and you can sell to them. But someone must be importer of record in the EU, hold an EORI number and take responsibility for the declaration and the origin claim. Doing it through your own Spanish company keeps the customs relationship, the import VAT position and the distribution margin on your side, and gives you a VAT registration for onward sales across the single market.
How is import VAT handled?
It is charged on entry into the EU. Spain allows companies filing VAT monthly to defer import VAT to the periodic return rather than paying it at the border, so the charge and the deduction fall in the same period and the cash-flow gap disappears. It depends on holding monthly filing status, which is arranged at set-up rather than when the first container arrives.
Does cumulation let me route third-country goods through Morocco?
No. Cumulation allows materials and processing from participating countries to count towards originating status; it does not confer origin by transit. Goods that merely pass through Morocco without sufficient transformation do not become Moroccan for preference purposes, and claims resting on routing rather than production fail when verified.
Can my origin claim be checked after clearance?
Yes, and this is where problems usually surface. Customs authorities verify origin claims after release, sometimes considerably later, by asking the importer to substantiate them and by requesting confirmation from the exporting country's authorities. The supporting documentation has to still exist and to support what was declared, so retention is part of the process rather than an afterthought.
Does importing create a permanent establishment for the Moroccan supplier?
Selling to an independent Spanish importer generally does not. The risk arises where the Moroccan company keeps a presence on the Spanish side — and the 1978 treaty is unusually wide here: it lists a shop as a permanent establishment in its own right, and treats a stock held on consignment by an intermediary as establishing one even where that intermediary is independent. Consignment arrangements in particular deserve checking before they are put in place.
Describes the framework as at September 2026, including the revised pan-Euro-Mediterranean rules of origin applying from 1 January 2026. Tariff treatment depends on classification, origin and the specific product, and some goods are subject to quotas, entry-price arrangements or non-tariff controls not covered here. Customs thresholds and procedures change and must be confirmed for the specific consignment. General information, not customs or tax advice.

Fourteen kilometres, three customs statuses. Know which one you are in.

Book a consultation ↗
20 minutes · No commitment · Straight answers
About the author
AB

Alexander Baranov

Founder, Voixa Consultors · International corporate structuring since 2008

Seventeen years designing and delivering cross-border corporate structures — incorporation, tax, holding, banking and market entry — for founders and companies expanding into Spain and the EU. Author of professional books on entering the Spanish market.

More about Voixa and the team ↗
Market Entry to Spain book cover
Book · Kindle
Market Entry to Spain Strategy, corporate structure, tax and growth — the long-form treatment of the decisions covered here.
Read on Amazon ↗