TradeVedia
Global Trade Visual Encyclopedia

Morocco (MAR)

Annual exports and imports in 2024 (USD).

Source: UN Comtrade. Warehouse 1: partner = World totals by HS4 and year.

Exports
$80.57B
Imports
$97.95B
Total trade
$178.52B
Trade balance
-$17.38B
Loading partners sankey...
Loading composition sunburst...

Morocco - trade dependency by partner, 2024 (USD)

Share of exports, imports, and total trade attributed to each partner.
Year: 2024 | Unit: USD | Snapshot: 20251222 | Source: UN Comtrade
Showing top 10 partners by total dependency.
Total
19.4%
Exports
22.6%
$18.21B
Imports
16.7%
$16.41B
Total
19.4%
$34.62B
Total
14.7%
Exports
19.7%
$15.84B
Imports
10.5%
$10.32B
Total
14.7%
$26.16B
Rank #3
USA (USA)
Total
6.3%
Exports
3.0%
$2.42B
Imports
8.9%
$8.76B
Total
6.3%
$11.18B
Total
6.2%
Exports
0.7%
$541.67M
Imports
10.7%
$10.45B
Total
6.2%
$10.99B
Total
5.4%
Exports
5.5%
$4.40B
Imports
5.4%
$5.27B
Total
5.4%
$9.67B
Total
4.9%
Exports
5.2%
$4.23B
Imports
4.5%
$4.44B
Total
4.9%
$8.67B
Total
3.8%
Exports
2.6%
$2.10B
Imports
4.8%
$4.72B
Total
3.8%
$6.82B
Total
2.6%
Exports
4.4%
$3.53B
Imports
1.2%
$1.16B
Total
2.6%
$4.70B
Total
2.6%
Exports
3.3%
$2.62B
Imports
2.0%
$1.97B
Total
2.6%
$4.60B
Rank #10
India (IND)
Total
2.5%
Exports
3.3%
$2.69B
Imports
1.7%
$1.70B
Total
2.5%
$4.39B
Generated by TradeVedia.comSource: UN Comtrade
  • Morocco's total international trade in 2024 was $178.5B, with exports of $80.6B and imports of $98.0B.
  • The country ranked 40th for exports and 38th for imports globally in 2024.
  • The top export destination was Spain, accounting for 22.6% of all exports with a value of $18.2B.
  • Spain was also the largest source of imports, providing $16.4B (16.7%) of total imports.
  • Top exports included Vehicles (HS2 87) at $16.4B and Electrical machinery (HS2 85) at $16.1B.
  • Key imports were Electrical machinery (HS2 85) valued at $11.9B and Mineral fuels (HS2 27) at $11.6B.

Morocco's Trade Performance in 2024

In 2024, Morocco was the world's 39th largest trading nation with a total trade volume of $178.5B. The country's exports were valued at $80.6B (ranking 40th) and its imports at $98.0B (ranking 38th), leading to a trade deficit of -$17.4B. The country's primary trading partners for both exports and imports are European nations.

See also: SpainFrance

Top Export and Import Partners

Morocco's trade is concentrated with a few key partners. Spain is the top destination for exports, receiving $18.2B (22.6%), followed by France with $15.8B (19.7%). On the import side, Spain is also the leading partner, supplying $16.4B (16.7%) of goods, with China providing $10.4B (10.7%) and France $10.3B (10.5%).

See also: ChinaGermany

Key Traded Products

The country's leading export is Vehicles (HS2 87), which generated $16.4B in revenue, representing 20.3% of total exports. This is followed by Electrical machinery and equipment (HS2 85) at $16.1B and Fertilizers (HS2 31) at $12.6B. The most significant imports are Electrical machinery and equipment (HS2 85) at $11.9B, and Mineral fuels (HS2 27), which accounted for $11.6B of the import value.

Exports

Morocco - exports over time (Exports), 2015-2024 (USD)

Annual reported export values across available years.
Flow: Exports | Years: 2015-2024 | Unit: USD | Source: UN Comtrade
Generated by TradeVedia.comSource: UN Comtrade

Top export categories

Largest HS2 categories by export value in the selected year.

#3 • HS 31
Fertilizers
$12.64B
15.7% share
$3.24B
4.0% share
$924.27M
1.1% share

Morocco - export composition by product categories (Exports), 2024 (USD)

Largest product categories by export value in the selected year.
Flow: Exports | Year: 2024 | Unit: USD | Source: UN Comtrade
Generated by TradeVedia.comSource: UN Comtrade

Morocco - export composition by 4-digit product groups (Exports), 2024 (USD)

Area reflects share within the displayed list; hover for product codes.
Flow: Exports | Year: 2024 | Unit: USD | Source: UN Comtrade
Generated by TradeVedia.comSource: UN Comtrade

Imports

Morocco - imports over time (Imports), 2015-2024 (USD)

Annual reported import values across available years.
Flow: Imports | Years: 2015-2024 | Unit: USD | Source: UN Comtrade
Generated by TradeVedia.comSource: UN Comtrade

Top import categories

Largest HS2 categories by import value in the selected year.

Morocco - import composition by product categories (Imports), 2024 (USD)

Largest product categories by import value in the selected year.
Flow: Imports | Year: 2024 | Unit: USD | Source: UN Comtrade
Generated by TradeVedia.comSource: UN Comtrade

Morocco - import composition by 4-digit product groups (Imports), 2024 (USD)

Area reflects share within the displayed list; hover for product codes.
Flow: Imports | Year: 2024 | Unit: USD | Source: UN Comtrade
Generated by TradeVedia.comSource: UN Comtrade