Train in Morocco: The Complete ONCF Travel Guide 2025 /2026

Thinking about exploring Morocco by rail? Taking the train in Morocco is one of the smartest ways to travel between major cities. Fast, affordable, and surprisingly comfortable, the Moroccan railway system connects all the destinations you actually want to visit.

I’ve taken the Marrakech to Casablanca train more times than I can count. And every single time, I’m impressed by how smooth the journey is. No traffic jams. No stressful driving through chaotic medinas. Just sit back, watch the Moroccan landscape roll by, and arrive refreshed.

Whether you’re planning a quick hop between imperial cities or a longer journey across the country, this guide covers everything you need to know about ONCF trains, ticket prices, schedules, and my honest tips after years of rail travel in Morocco.

Morocco’s national railway company, ONCF (Office National des Chemins de Fer), operates an impressive network that keeps getting better. The introduction of the Al Boraq high-speed train changed everything. Suddenly, traveling from Tangier to Casablanca takes just over two hours instead of five.

Modern ONCF train station in Morocco — your gateway to comfortable rail travel

Why Tourists Love Train Travel in Morocco

So why are more and more travelers choosing the train in Morocco over other options? After countless journeys, I can tell you exactly why this has become my favorite way to get around.

  • Speed — Al Boraq reaches 320 km/h, making it Africa’s fastest train
  • Comfort — Air conditioning, spacious seats, and onboard café
  • Reliability — Trains run on schedule, departures every hour on main routes
  • City center access — Stations located in the heart of each city
  • Affordable — Much cheaper than flying between cities
  • Scenic views — Watch Morocco’s diverse landscapes from your window

If you’re debating between renting a car in Morocco or taking the train, consider this: trains eliminate the stress of driving in Morocco while still getting you where you need to go efficiently.

Quality of Morocco’s Railway Network

Al Boraq — Africa’s first high-speed train connecting Tangier to Casablanca

Morocco has invested heavily in its rail infrastructure over the past decade. The result? A modern, efficient network that rivals many European countries. Here’s what you can expect from ONCF trains in 2025.

Main Railway Lines

The ONCF network covers the most important tourist corridor:

  • Northern Line: Tangier — Kenitra — Rabat — Casablanca
  • Central Line: Casablanca — Settat — Marrakech
  • Eastern Line: Casablanca — Meknes — Fes — Oujda
  • Atlantic Line: Casablanca — El Jadida (limited service)

Read More: Railway Network Details →

Infrastructure Quality

The tracks between major cities are well-maintained and modern. The high-speed line from Tangier to Casablanca uses European technology and meets international standards. Regular lines are comfortable for the Al Atlas conventional trains.

Station Facilities

Major ONCF stations like Casa Port station Casablanca and Marrakech train station offer:

  • Clean waiting areas with air conditioning
  • Cafés and small shops
  • Luggage storage services
  • Information desks with English-speaking staff
  • ATMs and currency exchange
  • Taxi stands right outside

Smaller stations have basic facilities but are still clean and functional.

Al Boraq vs Al Atlas: Which Train to Choose

First class interior on Moroccan trains — comfortable seating for long journeys

Morocco operates two main types of trains, and understanding the difference will help you plan better. The Al Boraq is the star of the show, but Al Atlas trains serve routes the high-speed line doesn’t reach.

<

Al Boraq (High-Speed Train)

The Al Boraq is Africa’s first high-speed train, launched in 2018. Named after a mythical creature from Islamic tradition, it lives up to its legendary name.

Key features:

  • Maximum speed: 320 km/h
  • Route: Tangier — Kenitra — Rabat — Casablanca
  • Journey time: Tangier to Casa in 2h10
  • Two classes: First and Second
  • Onboard café car
  • Power outlets at every seat
  • Free WiFi
  • Spacious luggage areas

p>

Read More:Train Types Comparison →

Al Atlas (Conventional Trains)

Al Atlas trains serve the rest of the network, including the popular Casablanca to Marrakech train route.

Key features:

  • Maximum speed: 160 km/h
  • Routes: Casablanca-Marrakech, Casablanca-Fes, Fes-Oujda
  • Two classes: First and Second
  • Air conditioning in all carriages
  • Café service on longer routes
  • Comfortable but older rolling stock

Quick Comparison

Feature Al Boraq Al Atlas
Speed 320 km/h 160 km/h
Routes Tangier-Casablanca All other lines
WiFi Yes No
Power outlets Yes Limited
Price Higher Lower
Comfort Excellent Good

Most Popular Train Routes for Tourists

Not sure which routes to include in your Morocco itinerary? These are the train journeys that tourists take most often, and for good reason.

Marrakech to Casablanca Train

The Marrakech to Casablanca train is probably the most traveled tourist route. Multiple departures daily make it incredibly convenient.

  • Duration: 2h30 — 3h
  • Frequency: Every 1-2 hours
  • Train type: Al Atlas
  • Scenery: Plains, agricultural land, occasional villages

p>

Read More: Popular Routes Details →

Casablanca to Marrakech Train

The return journey on the Casablanca to Marrakech train follows the same route. Many tourists arrive at Casablanca airport and head straight to Marrakech by train.

Tangier to Casablanca (Al Boraq)

This high-speed route is a game-changer for anyone arriving from Spain by ferry.

  • Duration: 2h10
  • Frequency: Multiple daily departures
  • Train type: Al Boraq
  • Scenery: Atlantic coast glimpses, green countryside

Casablanca to Fes

Connecting Morocco’s economic capital with its spiritual heart.

  • Duration: 3h30 — 4h
  • Frequency: Several daily
  • Train type: Al Atlas
  • Scenery: Rolling hills, Middle Atlas foothills

Rabat to Marrakech

Perfect for those exploring the capital before heading south.

  • Duration: 3h30 — 4h
  • Frequency: Multiple daily (change in Casablanca)
  • Train type: Al Boraq + Al Atlas combination

Fes to Meknes

A short hop between two imperial cities.

  • Duration: 45 minutes
  • Frequency: Frequent service
  • Train type: Al Atlas

ONCF Prices: What Train Tickets Cost in 2025

ONCF prices are very reasonable compared to European standards. Here’s what you can expect to pay for the most popular routes. These prices make the train in Morocco an excellent budget option.

Al Atlas (Conventional) Prices

Route 2nd Class (MAD) 1st Class (MAD)
Marrakech — Casablanca 95 145
Casablanca — Fes 125 190
Casablanca — Rabat 45 70
Fes — Meknes 25 40
Rabat — Fes 95 145

Al Boraq (High-Speed) Prices

Route 2nd Class (MAD) 1st Class (MAD)
Tangier — Casablanca 229 329
Tangier — Rabat 189 269
Tangier — Kenitra 149 219
Casablanca — Rabat 79 119

p>

Read More: Complete Price Guide →

Price Tips

  • Children under 4: Free
  • Children 4-12: 50% discount
  • Students: Discounts available with ONCF card
  • Groups: Special rates for 10+ passengers
  • Return tickets: Small discount when buying round trip

Compared to car rental in Morocco, trains are often more economical for solo travelers or couples.

How to Buy ONCF Tickets

ONCF ticket machines available at major stations for quick purchases

Buying your ONCF tickets is straightforward. You have several options depending on your preference. I personally recommend booking online for Al Boraq trains, but station purchases work perfectly fine for Al Atlas routes.

Online Booking

The easiest way to buy ONCF tickets in advance:

  1. Visit oncf-voyages.ma
  2. Select departure and arrival stations
  3. Choose your date and preferred time
  4. Select class (1st or 2nd)
  5. Enter passenger details
  6. Pay with credit/debit card
  7. Receive e-ticket by email

Advantages of online booking:

  • Guaranteed seat on busy routes
  • Skip ticket counter queues
  • Access to all available departures
  • Easy to compare prices

p>

Read More: Booking Guide →

ONCF Mobile App

The ONCF app offers the same functionality as the website:

  • Available for iOS and Android
  • Real-time schedule information
  • Mobile tickets (show on phone)
  • Journey planning features
  • Delay notifications

At the Station

You can also buy tickets at any ONCF station:

  • Ticket counters: Staffed windows, cash or card accepted
  • Automatic machines: Available at major stations, card only
  • When to buy: Arrive 30 minutes before departure

Important Tips

  • Al Boraq: Book 1-3 days ahead, especially weekends
  • Al Atlas: Usually available same-day, but book ahead for holidays
  • Peak times: Friday afternoons, Sunday evenings, religious holidays
  • Print or screenshot: Have your ticket ready before boarding

Comfort and Punctuality on Moroccan Trains

What’s it really like riding the train in Morocco? After dozens of journeys, here’s my honest assessment of what you can expect in terms of comfort and timing.

First Class vs Second Class

First Class:

  • Wider seats with more legroom
  • 2+1 configuration (three seats per row)
  • Quieter carriages
  • Power outlets more reliable
  • Worth the extra 50-100 MAD on long journeys

Second Class:

  • Comfortable but narrower seats
  • 2+2 configuration
  • Can get crowded during peak times
  • Perfectly fine for journeys under 2 hours
  • Best value for budget travelers

Read More: Comfort Details →

Onboard Amenities

  • Air conditioning: Standard on all trains (sometimes too cold!)
  • Toilets: Available in each carriage, reasonably clean
  • Café car: Snacks, drinks, and light meals on longer routes
  • Luggage: Overhead racks plus space at carriage ends
  • WiFi: Al Boraq only, decent but not fast

Punctuality

Moroccan trains are remarkably punctual:

  • Al Boraq: 95%+ on-time performance
  • Al Atlas: 85-90% on-time, occasional 10-15 minute delays
  • Announcements: Made in Arabic, French, and sometimes English
  • Delays: Rare, usually due to technical issues or weather

Compared to buses or driving in Morocco, trains are significantly more predictable.

Safety on Moroccan Trains

Is the train in Morocco safe? The short answer is yes. Rail travel in Morocco is very secure, and I’ve never felt unsafe during any journey.

General Safety

  • Crime on trains: Very rare, petty theft uncommon
  • Staff presence: Conductors patrol carriages regularly
  • CCTV: Cameras in stations and some carriages
  • Police: Present at major stations

Practical Safety Tips

  • Keep valuables in your carry-on bag, not overhead
  • Stay aware of your belongings at stations
  • Use the luggage racks within your sight
  • Lock large bags if storing at carriage ends
  • Don’t leave electronics unattended when visiting café car

p>

Read More: Safety Information →

For Solo Female Travelers

Women traveling alone will find trains comfortable and safe:

  • First class tends to be quieter and more private
  • Staff are helpful and professional
  • Avoid isolated carriages late at night
  • Stations are well-lit and staffed

Emergency Information

  • Emergency button in each carriage
  • Staff trained in first aid
  • ONCF emergency number posted in trains

Train Schedules and Timetables

Finding ONCF schedules is easy once you know where to look. Here’s how to plan your Morocco train journey timing.

How to Check Schedules

Online:

  • Visit oncf-voyages.ma
  • Use the journey planner
  • Select your route and date
  • View all available departures

Mobile App:

  • Real-time schedule updates
  • Delay notifications
  • Save frequent routes

At Stations:

  • Electronic departure boards
  • Printed timetables at information desks
  • Staff assistance available

Typical Operating Hours

  • First trains: Around 6:00 AM
  • Last trains: Around 9:00-10:00 PM (varies by route)
  • Peak frequency: 7-9 AM and 5-8 PM
  • Weekend service: Slightly reduced frequency

p>

Read More: Schedule Information →

Sample Schedule: Marrakech-Casablanca

Departures approximately every 1-2 hours:

  • 06:00, 07:30, 09:00, 10:30, 12:00
  • 13:30, 15:00, 16:30, 18:00, 19:30, 21:00

Always confirm current schedules online before traveling.

Practical Tips for Train Travel in Morocco

After years of taking the train in Morocco, here are my best tips to make your journey smooth and enjoyable.

Before Your Trip

  • Book Al Boraq in advance — Popular times sell out
  • Download offline maps — Station WiFi can be unreliable
  • Check schedules the night before — Confirm your departure time
  • Bring snacks and water — Café car can be pricey
  • Pack a light jacket — AC can be very cold

At the Station

  • Arrive 20-30 minutes early — Time to find your platform
  • Check the departure board — Platform numbers can change
  • Keep your ticket handy — Inspectors check before boarding
  • Use official taxis — Queue at designated stands outside

During the Journey

  • Store luggage securely — Use overhead racks or designated areas
  • Keep valuables with you — Don’t leave bags unattended
  • Try the café car — Good coffee and snacks
  • Enjoy the scenery — Morocco’s landscapes are beautiful

Know Your Stations

  • Casa Port station Casablanca — Central location, best for medina access
  • Casa Voyageurs — Main hub, more connections
  • Marrakech train station — Modern, close to medina and Gueliz
  • Fes Ville — Near the new city, taxis to medina
  • Rabat Ville — Central, walkable to attractions

Train vs Other Transport Options

How does the train in Morocco compare to other ways of getting around? Here’s my honest comparison based on experience.

Train vs Bus

Factor Train Bus (CTM)
Speed Faster Slower
Comfort More spacious Good but cramped
Price Similar Slightly cheaper
Network Major cities only More destinations
Reliability Excellent Very good

Train vs Rental Car

Choose the train if:

  • You’re traveling between major cities on the rail network
  • You prefer not to drive in Moroccan traffic
  • You’re traveling solo or as a couple
  • You want to relax during travel time

Choose a rental car if:

  • You’re visiting places not on the rail network (Chefchaouen, Sahara, Essaouira)
  • You’re traveling with family or in a group
  • You want maximum flexibility
  • You’re comfortable with driving in Morocco

For comprehensive Morocco road trip logistics, combining trains with car rental often works best.

Final Thoughts on Train Travel in Morocco

Taking the train in Morocco is one of the best decisions you can make for intercity travel. The combination of comfort, affordability, and reliability makes ONCF trains a fantastic option for tourists exploring this beautiful country.

The Al Boraq high-speed train is genuinely world-class, while the Al Atlas conventional trains offer solid service on routes like the popular Marrakech to Casablanca train. With easy online booking and reasonable ONCF prices, there’s really no reason not to try it.

My advice? Use trains for the major city-to-city connections, then rent a car or take buses for the places rail doesn’t reach. It’s the perfect combination for a Morocco adventure.

Have questions about train travel in Morocco? Drop them in the comments below!