09:10Freight Operations514 words
Maersk and ONCF to grow Morocco container rail after 55,000-box year
Maersk and ONCF agreed to expand container rail in Morocco after 55,000 boxes moved on the Tanger Med–Casablanca corridor in 2025, with container handling up 85%.
· 3 min journey

Calling at
- ONCF moved 55,000 containers between Tanger Med and Casablanca in 2025.
- Total ONCF rail freight reached 23 million tonnes across its 2,295 km network in 2025.
- Container handling activity rose 85%, aided by CEVA Logistics, Maersk and Tima.
- ONCF expanded the MITA dry port in Casablanca in 2025.
- Maersk uses the Tangier–Casablanca rail link to bypass the congested port of Casablanca.
Maersk and Moroccan national operator ONCF have signed an agreement to expand containerised rail freight in Morocco, building on a corridor that already moved 55,000 containers between Tanger Med and Casablanca in 2025.
The deal targets a larger rail share of the country's containerised import and export traffic. It combines ONCF's 2,295 km network with Maersk's maritime services and inland logistics arm — a pairing that lets the Danish carrier feed ocean freight arriving at Tanger Med onto trains rather than trucks or coastal feeder moves.
What does the agreement actually cover?
The two companies have set out a framework rather than a firm volume commitment. The agreement focuses on increasing rail's share of containerised imports and exports, pairing ONCF's network with Maersk's shipping schedules and landside services.
That's less vague than it sounds, because the operating model already exists. Maersk runs containers on a high-frequency rail connection between Tangier and Casablanca, using it as an alternative to direct maritime delivery into the port of Casablanca — a terminal the source identifies as congested.
The flows run one direction with clear handoffs: containers discharge at Tanger Med, ride ONCF's network to Casablanca, and Maersk then handles customs clearance, storage and last-mile road distribution from there. In effect, the rail leg replaces a port call, and the agreement's job is to scale that pattern.
Why is the corridor working?
The geography does most of the heavy lifting. Tanger Med sits on the Strait of Gibraltar and handles the deep-sea calls; Casablanca is the country's commercial hub and consumption centre. Rail between them takes trucks off the road and ocean feeders off the short-sea route, and it sidesteps the berth congestion at Casablanca that made direct maritime deliveries unattractive in the first place.
For Maersk, the arrangement turns a port bottleneck into a controlled inland pipeline. For ONCF, it anchors guaranteed high-frequency traffic on a corridor where the operator has already invested in terminal capacity.
Is ONCF ready for the growth?
The numbers suggest it is scaling ahead of the deal. In 2025, ONCF handled 55,000 containers between Tanger Med and Casablanca, within a total rail freight volume of 23 million tonnes across its 2,295 km network.
Casablanca's MITA dry port expanded in 2025, and cooperation with logistics partners — CEVA Logistics, Maersk and Tima among them — drove an 85% increase in container handling activity. That growth came before this agreement, so the partners are formalising and extending a corridor that already has momentum rather than launching something from a standing start.
The 85% container-handling increase is the figure to watch. If the new agreement converts it into sustained volumes, MITA and the Tanger Med–Casablanca trains become the backbone of Moroccan container logistics — and a template for other ocean carriers looking to bypass congested gateway ports with rail.
Whether that translates into committed train paths and tonnage will show up in ONCF's next freight statistics, and the operators haven't yet published targets beyond the framework.
via railmarket.com (Source)
Filed underContainer RailMoroccoOncfMaerskTanger Med
More from James Calloway
Show full bio
Correspondent covering companies, deals and strategy in Rail industry news and analysis at Mainline Report.
419 articles
Connecting services · Related articles
- 22:13
AfDB Commits €405M to Moroccan Rail Upgrades
- 15:00
Conference Puts Integrated Freight Rail in Africa on the Agenda
- 00:39
Saudi Arabia turns to freight rail for supply-chain security
- 12:45
Saudi Arabia and UAE agree to develop cross-border rail links
- 08:25
Medway to run 300 trains for ArcelorMittal's Dunkirk plant