๐ฒ๐ฆ Morocco: trade in 2023
Middle East, North Africa, Afghanistan & Pakistan ยท World rank #58 exporter, #49 importer of 202 economies (2023).
Morocco exported $42B of goods and imported $71B in 2023, a trade deficit of $28B. Its largest export market was ๐ช๐ธ Spain (22.5% of exports) and its largest supplier was ๐ช๐ธ Spain (15.7% of imports). Against 2022, exports changed by +1.0% and imports by โ2.8%.
largest exporter of 202 economies, and #49 importer
of exports go to ๐ช๐ธ Spain, the largest market
of exports go to just three markets, out of 181
trade deficit: exports pay for 60% of imports
change in exports on 2022: $42B then, $42B in 2023
of imports come from ๐ช๐ธ Spain, the largest supplier
Where Morocco's goods come from, and where they go
The five largest suppliers and the five largest markets in 2023. Ribbon width is in proportion to value within each side.
Where Morocco sold its goods in 2023
Morocco exported $42B of goods to 181 markets in 2023.
Where Morocco bought its goods in 2023
Morocco imported $71B of goods from 179 suppliers in 2023.
Where Morocco ran a surplus, and where a deficit
Exports to each partner minus imports from it, 2023. The six largest on each side, on one scale.
Morocco's partners on the map, 2023
Shade shows each partner's share of Morocco's exports or imports. Hover or tap a country for the figure; every partner is in the table further down.
The 80 largest trading partners of Morocco in 2023
What Morocco trades: products in 2023
Product figures are BACI's reconciled data, which matches each export to the partner's import record. On that basis Morocco exported $52B and imported $72B in 2023, so these totals differ from the customs figures above. Shares below are of the BACI totals.
Exports by product group, 2023
The same figures as a list
- Transport equipment$11B20.5%
- Machinery & electronics$11B20.3%
- Chemicals & allied$8.4B16.1%
- Textiles & clothing$6.7B12.9%
- Vegetable products$5.5B10.5%
- Animal & animal products$2.1B4.1%
- Foodstuffs, beverages & tobacco$2.1B4.0%
- Minerals$1.7B3.3%
- Base metals$1.0B1.9%
- Instruments, arms & misc.$888M1.7%
- Plastics & rubber$661M1.3%
- Footwear & headgear$513M1.0%
- Stone, glass & precious metals$489M0.9%
- Wood & paper$290M0.6%
- Mineral fuels & oils$251M0.5%
Largest export products, 2023
Morocco exported 4,171 different products in 2023.
Imports by product group, 2023
The same figures as a list
- Machinery & electronics$14B20.1%
- Mineral fuels & oils$13B17.5%
- Transport equipment$7.6B10.5%
- Base metals$6.5B9.1%
- Vegetable products$5.5B7.6%
- Chemicals & allied$5.0B7.0%
- Textiles & clothing$4.8B6.7%
- Plastics & rubber$4.0B5.5%
- Foodstuffs, beverages & tobacco$3.1B4.4%
- Instruments, arms & misc.$2.6B3.7%
- Wood & paper$1.8B2.5%
- Stone, glass & precious metals$1.2B1.7%
- Animal & animal products$1.2B1.6%
- Minerals$778M1.1%
- Footwear & headgear$388M0.5%
- Hides, skins & leather$302M0.4%
Largest import products, 2023
Morocco's trade year by year
Customs figures in US dollars. Choose a year for its partners and products.
| Year | Exports | Imports | Balance |
|---|---|---|---|
| 2025 | $79B | $112B | โ33B |
| 2024 | $72B | $98B | โ26B |
| 2023 | $42B | $71B | โ28B |
| 2022 | $42B | $73B | โ31B |
| 2021 | $37B | $59B | โ22B |
| 2020 | $28B | $45B | โ17B |
| 2019 | $30B | $51B | โ21B |
Earlier years, 2000 to 2018
| Year | Exports | Imports | Balance |
|---|---|---|---|
| 2018 | $28B | $51B | โ23B |
| 2017 | $25B | $45B | โ20B |
| 2016 | $23B | $42B | โ19B |
| 2015 | $21B | $37B | โ16B |
| 2014 | $24B | $46B | โ22B |
| 2013 | $22B | $45B | โ23B |
| 2012 | $20B | $43B | โ23B |
| 2011 | $21B | $44B | โ23B |
| 2010 | $17B | $35B | โ19B |
| 2009 | $13B | $32B | โ19B |
| 2008 | $19B | $41B | โ22B |
| 2007 | $14B | $31B | โ17B |
| 2006 | $12B | $23B | โ11B |
| 2005 | $11B | $20B | โ9.6B |
| 2004 | $9.7B | $17B | โ7.8B |
| 2003 | $8.6B | $14B | โ5.3B |
| 2002 | $7.7B | $12B | โ3.9B |
| 2001 | $7.1B | $11B | โ4.3B |
| 2000 | $7.2B | $11B | โ4.1B |
Totals and partners for every year on this page: International Monetary Fund, International Trade in Goods by partner country, retrieved 2026-11-15. These are each economy's own customs figures, converted to US dollars at the average exchange rate of each month; imports include freight and insurance, exports do not. Products for 2023: BACI (CEPII), reconciled from UN Comtrade at the 6-digit HS level. The sources use different methods, so compare like with like. About the data
Cite or embed this page
Citation
World Trade Data. “Morocco Trade in 2023: Exports, Imports and Trading Partners.” https://world.customsnepal.com/trade/morocco/2023 (updated 15 November 2026).
Embed this card on your site
You may quote these figures and use this card with a link to this page. The data comes from the sources named above; please credit them as well.