MA · MAR · BACI 504 · latest data 2024

Exports

$59.9B USD, nominal · 2024

= $59,855 M68.2% over 5 yrs (up)

Imports

$95.1B USD, nominal · 2024

= $95,101 M80.8% over 5 yrs (up)

Trade balancedeficit

−$35.2B USD, nominal · 2024

= $35,246 M

Total trade

$155.0B USD, nominal · 2024

= $154,956 M75.7% over 5 yrs (up)

World position
#53 of 225 exporters · top 25% · #42 of 225 importers · top 25% · 2024
World export share since 1995
+0.1 pp

Trade timeline

Morocco's exports grew from $7.6B in 1995 to $59.9B in 2024; the 2024 balance was −$35.2B.

Loading trade timeline…

View timeline table
Exports, imports, trade balance and total trade of Morocco per year, USD millions.
YearExports ($M)Imports ($M)Balance ($M)Total ($M)
1995$7,629 M$9,938 M−$2,309 M$17,567 M
1996$8,005 M$9,528 M−$1,523 M$17,533 M
1997$8,017 M$9,155 M−$1,138 M$17,171 M
1998$8,467 M$11,372 M−$2,905 M$19,839 M
1999$8,675 M$11,777 M−$3,102 M$20,453 M
2000$9,051 M$12,613 M−$3,561 M$21,664 M
2001$9,083 M$11,863 M−$2,781 M$20,946 M
2002$9,959 M$12,963 M−$3,004 M$22,921 M
2003$11,306 M$15,519 M−$4,213 M$26,825 M
2004$13,274 M$19,221 M−$5,947 M$32,494 M
2005$14,362 M$22,069 M−$7,707 M$36,431 M
2006$15,894 M$26,036 M−$10,143 M$41,930 M
2007$20,297 M$33,802 M−$13,505 M$54,099 M
2008$25,108 M$43,979 M−$18,871 M$69,087 M
2009$17,705 M$33,477 M−$15,773 M$51,182 M
2010$21,217 M$37,099 M−$15,882 M$58,317 M
2011$25,908 M$46,069 M−$20,161 M$71,977 M
2012$26,541 M$46,837 M−$20,295 M$73,378 M
2013$27,299 M$46,209 M−$18,910 M$73,509 M
2014$29,010 M$46,876 M−$17,866 M$75,886 M
2015$29,036 M$39,111 M−$10,075 M$68,147 M
2016$29,232 M$42,908 M−$13,676 M$72,140 M
2017$31,764 M$46,441 M−$14,676 M$78,205 M
2018$34,732 M$52,127 M−$17,395 M$86,859 M
2019$35,580 M$52,600 M−$17,020 M$88,180 M
2020$32,440 M$46,139 M−$13,699 M$78,579 M
2021$42,629 M$59,442 M−$16,813 M$102,071 M
2022$48,413 M$73,066 M−$24,654 M$121,479 M
2023$49,247 M$71,969 M−$22,722 M$121,215 M
2024$59,855 M$95,101 M−$35,246 M$154,956 M
30 rows

USD millions, nominal · 1995–2024 · Source: CEPII BACI (HS92)

World share & rank

World export share moved from 0.2% in 1995 to 0.3% in 2024; export rank #53 → #53.

Loading world share and rank…

View share & rank table
World export and import share in percent, and world ranks, of Morocco per year.
YearExport share (%)Import share (%)Export rankImport rank
19950.15%0.20%#53#49
19960.15%0.18%#54#54
19970.14%0.16%#56#55
19980.15%0.20%#54#51
19990.15%0.20%#56#49
20000.14%0.19%#60#52
20010.14%0.19%#60#54
20020.15%0.20%#60#51
20030.15%0.20%#60#51
20040.14%0.21%#64#52
20050.14%0.21%#66#53
20060.13%0.22%#67#54
20070.15%0.24%#65#53
20080.16%0.27%#65#52
20090.14%0.27%#67#54
20100.14%0.25%#67#54
20110.14%0.26%#67#55
20120.15%0.26%#69#56
20130.15%0.25%#71#57
20140.16%0.26%#67#54
20150.18%0.24%#60#56
20160.19%0.27%#61#51
20170.18%0.26%#62#53
20180.18%0.27%#63#52
20190.19%0.28%#62#50
20200.19%0.27%#60#51
20210.20%0.28%#60#52
20220.20%0.30%#62#51
20230.22%0.32%#59#47
20240.26%0.42%#53#42
30 rows

% of world trade and world rank · 1995–2024 · Source: CEPII BACI (HS92)

Trading partners

Spain was Morocco's top trading partner in 2024, at 17.7% of total trade; the top five partners covered 50.4%.

Top partner share
17.7%
Top-5 share
50.4%
Partners
203
Partner HHI (0–1)
0.069

Loading world basemap…

View partner table
Top partners of Morocco in 2024, USD millions.
RankPartnerExports to ($M)Imports from ($M)Total ($M)Balance ($M)
#1Spain$11,479 M$15,928 M$27,407 M−$4,449 M
#2France$9,184 M$9,886 M$19,070 M−$702 M
#3China$1,131 M$10,467 M$11,598 M−$9,336 M
#4United States$2,255 M$8,838 M$11,092 M−$6,583 M
#5Germany$3,818 M$5,080 M$8,898 M−$1,262 M
#6Italy$2,558 M$4,255 M$6,813 M−$1,697 M
#7Türkiye$1,855 M$4,654 M$6,509 M−$2,800 M
#8United Kingdom$2,714 M$1,198 M$3,912 M$1,517 M
#9India$1,874 M$1,652 M$3,525 M$222 M
#10Portugal$668 M$2,825 M$3,492 M−$2,157 M
#11Saudi Arabia$282 M$2,965 M$3,247 M−$2,683 M
#12Brazil$1,345 M$1,718 M$3,064 M−$373 M
#13Poland$1,479 M$1,401 M$2,880 M$78 M
#14Belgium$1,094 M$1,676 M$2,770 M−$582 M
#15Romania$810 M$1,900 M$2,710 M−$1,090 M
15 rows

USD millions, nominal · 2024 · Source: CEPII BACI (HS92)

Flows are origin/destination attributions, not shipping routes.

Products & sectors

Product composition of Morocco's trade in 2024.

Loading product detail for 2024 (large file, fetched on demand)…

View product table

The product table loads with the product data for 2024.

USD millions · HS92 · 2024 · Source: CEPII BACI (HS92)

Concentration & risk

Morocco's export partners diversified over 1995–2024 — HHI 0.148 → 0.076, a diversified export base across 184 partners in 2024.

Loading concentration trends…

View concentration table
Export and import partner HHI (0–1) and partner counts of Morocco per year.
YearExport HHIImport HHIExport partnersImport partners
19950.1480.078134130
19960.1340.078142136
19970.1250.082146133
19980.1340.098149143
19990.1290.095154149
20000.1250.084161153
20010.1210.082169158
20020.1240.074166165
20030.1350.078174164
20040.1310.071175168
20050.1080.069173171
20060.0980.067171167
20070.1070.061177166
20080.0830.059178169
20090.1000.065185166
20100.0810.062182167
20110.0810.060182172
20120.0720.058184178
20130.0810.063187184
20140.0840.062183178
20150.0800.063186187
20160.0910.067187183
20170.0970.069189187
20180.0990.068190188
20190.1000.068189184
20200.0920.072186184
20210.0870.068183187
20220.0710.062187189
20230.0820.068187190
20240.0760.072184196
30 rows

HHI (0–1) and partner count · 1995–2024 · Source: CEPII BACI (HS92)

HHI is the Herfindahl–Hirschman index of partner shares on a 0–1 scale. Standard reading: below 0.10 diversified · 0.10–0.25 moderately concentrated · above 0.25 concentrated.

Downloads

The exact artifacts behind this page, as published:

Values are merchandise (goods) trade in nominal USD millions, from CEPII BACI under the HS92 classification, 1995–2024. Dataset generated 2026-06-08.

  • Goods trade only; values are nominal USD (not inflation-adjusted).
  • HS92 across 1995-2024All trade years 1995-2024 use HS92-compatible product codes for a consistent long-run series.
  • BACI country codesBACI numeric country codes can differ from standard ISO numeric codes (e.g. USA=842, France=251, India=699).
  • Origin/destination, not routesExporter/importer flows are origin/destination attributions and do not directly observe shipping routes.