MA Prefix and Three-Letter Location Code
Morocco UN/LOCODE entries use the country prefix MA followed by a three-character location identifier. For example, Casablanca is listed as MACAS and Agadir as MAAGA.
Morocco has 32 ports and terminals indexed in the Ecer Freight database, supporting Atlantic and Mediterranean trade, regional distribution, transshipment and gateway cargo flows.
Use the port-code directory to identify Morocco gateways, compare regional cargo roles and prepare sea-freight routing requests.
Morocco combines Atlantic gateways with Mediterranean access through the Strait of Gibraltar. Port selection depends on cargo type, vessel service, inland destination, transshipment requirements and the latest carrier schedule.
How many seaports does Morocco have?
Morocco has 32 seaports and terminals indexed by Ecer Freight in the Nov 2026 database snapshot. This is an indexed-coverage figure, not a claim that every facility has the same commercial or vessel-handling role.
What is Morocco's busiest container gateway?
Tanger Med, represented in the indexed sample by Port Tangier Mediterranee (MAPTM), is Morocco's principal container transshipment and gateway complex. Casablanca (MACAS) remains a major national cargo gateway.
Which Moroccan regions handle the main cargo flows?
The northern Strait of Gibraltar corridor around Tangier and the Atlantic industrial corridor around Casablanca are the principal trade areas, with Agadir (MAAGA) serving important southern agricultural and regional cargo flows.
The table separates indexed port coverage from global league-table ranking. Publicly reported container data is available for the Tanger Med complex; a unified world rank, 2025 throughput and year-on-year series is not published consistently for every Moroccan port listed here.
Selected active Moroccan gateways and terminals · latest comparable public data reviewed in 2026
| World rank | Port | UN-LOCODE | 2025 throughput (M TEU) | YoY change | Region |
|---|---|---|---|---|---|
| 17 | Port Tangier Mediterranee | MAPTM | 11.10 | +8.0% | Strait of Gibraltar |
| — | Casablanca | MACAS | — | — | Atlantic industrial corridor |
| — | Tangier | MATAN | — | — | Strait of Gibraltar |
| — | Agadir | MAAGA | — | — | Southern Atlantic |
| — | Nador | MANDR | — | — | Eastern Mediterranean |
| — | Safi | MASAF | — | — | Central Atlantic |
| — | Aaiun | MAEUN | — | — | Southern Atlantic |
| — | Mohammedia | MAMOH | — | — | Casablanca-Settat coast |
The northern gateway connects Moroccan supply chains with Mediterranean, European and transshipment networks. Tangier-related facilities are particularly relevant for time-sensitive container routing.
Selected northern ports and terminals
| Port | UN-LOCODE | City / Province | Main cargo role |
|---|---|---|---|
| Port Tangier Mediterranee | MAPTM | Port Tangier Mediterranee / | Container transshipment, gateway cargo and Ro-Ro connectivity |
| Tangier | MATAN | Tangier / | Regional commercial and maritime support functions |
| Tangier | MATNG | Tangier / | City-level port and logistics reference |
| Tetouan | MATTU | Tetouan / | Local coastal and regional cargo support |
| Al Hoceima | MAAHU | Al Hoceima / | Regional Mediterranean cargo and passenger services |
The central Atlantic coast serves Morocco's largest urban and industrial market. Casablanca and nearby facilities are commonly evaluated for import distribution, industrial cargo and inland delivery to central Morocco.
Selected central Atlantic ports
| Port | UN-LOCODE | City / Province | Main cargo role |
|---|---|---|---|
| Casablanca | MACAS | Casablanca / | National container, general cargo and industrial gateway |
| Mohammedia | MAMOH | Mohammedia / | Energy, liquid bulk and industrial cargo functions |
| El Jadida | MAEJA | El Jadida / | Regional industrial and bulk cargo support |
| Jorf Lasfar | MAJOL | Algar Dida / | Industrial, bulk and project cargo |
| Safi | MASAF | Safi / | Bulk, industrial and general cargo |
Southern Atlantic gateways support fisheries, agriculture, food products, regional distribution and selected bulk movements. Transit times and inland delivery conditions should be confirmed against the actual shipper and consignee locations.
Selected southern Atlantic ports
| Port | UN-LOCODE | City / Province | Main cargo role |
|---|---|---|---|
| Agadir | MAAGA | Agadir / | Agri-food, fisheries, containers and regional cargo |
| Aaiun | MAEUN | Aaiun / | Southern regional supply and general cargo |
| Tarfaya | MATAR | Tarfaya / | Regional coastal and project-related cargo |
| Sidi Ifni | MASII | Sidi Ifni / | Fishing and local coastal cargo |
| Boujdour | MABUJ | Boujdour / | Southern coastal and fishing-related cargo |
| Dakhla | MAVIL | Dakhla / | Fishing, regional supply and coastal cargo |
Eastern Mediterranean facilities provide regional alternatives for cargo serving northeastern Morocco and nearby inland markets. Service frequency and equipment availability can be more variable than at the main container gateways.
Selected eastern Mediterranean ports
Morocco UN/LOCODE entries use the country prefix MA followed by a three-character location identifier. For example, Casablanca is listed as MACAS and Agadir as MAAGA.
A city-level code and a terminal or facility reference may coexist in operational databases. The exact code should be checked against the booking instruction, carrier system, bill of lading and customs documentation before cargo is dispatched.
Compare the code with the UNECE UN/LOCODE reference and then check the relevant Ecer Freight port record through the port directory. Carrier acceptance and terminal naming should also be confirmed for the shipment.
Morocco's routing options reflect its position between the Atlantic, Mediterranean and European markets. Transit times below are indicative and depend on sailing schedules, transshipment, equipment, port omissions, customs and final delivery location.
Regular container services connect Morocco with major North European hubs for industrial goods, consumer products, automotive cargo and agricultural exports.
Short-sea and feeder connections serve Spain, Italy, France and other Mediterranean markets, with schedules subject to carrier rotation and seasonal demand.
Atlantic services support general cargo, food products, project cargo and containerized distribution along West African markets.
Asia-bound cargo generally uses direct or transshipment services through Mediterranean and global hub networks. Routing and equipment should be checked before booking.
Port coverage, naming and codes are presented as a practical freight-forwarding reference. Throughput figures and rankings are kept separate from Ecer Freight's indexed-port count, and figures are subject to revision by the responsible authority.
Morocco has 32 seaports and terminals indexed by Ecer Freight in the Nov 2026 database snapshot. The number describes indexed coverage and does not equate to a single official national classification.
Port Tangier Mediterranee, coded MAPTM in the supplied port sample, is Morocco's leading container and transshipment gateway. Casablanca, coded MACAS, is also a major national cargo gateway.
The MA prefix identifies Morocco in the UN/LOCODE format. It is followed by a three-character location identifier, such as MACAS for Casablanca or MAAGA for Agadir.
The Tangier and Strait of Gibraltar corridor generally offers the strongest proximity and transshipment advantages for European cargo. Casablanca can be practical for central Moroccan industrial and consumer markets.
The page was prepared for 2026 using a Nov 2026 data snapshot and the latest complete annual information available for review. Published port figures may be revised, and schedules, rankings and year-on-year comparisons should be reconfirmed before contracting.
A shipper should provide the origin, destination, cargo description, packaging, weight, volume, container type, Incoterm and desired sailing date. FCL and LCL quote tools can then be used to compare available routing options.
Yes. The selected code should match the carrier booking, terminal instructions, commercial documents and customs requirements. City-level and terminal-level references can differ, so the exact operational location should be confirmed before cargo handover.
Editorial note: This Morocco port guide combines Ecer Freight's first-party port index with publicly available port-authority and institutional information. Indexed coverage is reviewed with the database, while throughput, ranking and service information are updated as authoritative annual data becomes available; operational details remain subject to carrier and terminal confirmation.
Ecer Freight · Seaports in Morocco: Port Codes, Throughput & Regional Guide (2026) · Data reviewed quarterly · Port Codes · Ports by Country · Contact