Travelling Morocco by Train: The ONCF Network
Morocco's national rail operator, ONCF, runs a comfortable, good-value network linking Tangier, Rabat, Casablanca, Fez, Meknes and Marrakech. The Al Boraq high-speed line, Africa's first, connects Tangier, Kenitra, Rabat and Casablanca. Trains offer first and second class. Some destinations like Essaouira, Chefchaouen and the Sahara have no rail service and are reached by bus or grand taxi.
Trains are one of the most relaxing and scenic ways to travel between Morocco's major cities. The ONCF network is reliable and affordable, and the high-speed Al Boraq line has cut journey times dramatically along the northern corridor. Knowing which routes exist, and which require buses instead, makes planning your itinerary much simpler.
The Network and the Al Boraq High-Speed Line
ONCF operates Morocco's railways, connecting many of the country's most-visited cities. The classic network links the imperial cities and coastal hubs, including Tangier, Rabat, Casablanca, Fez, Meknes and Marrakech, making city-to-city travel straightforward. The standout development is Al Boraq, Africa's first high-speed rail line, running along the Tangier, Kenitra, Rabat and Casablanca corridor and dramatically shortening travel times in the north. Trains generally offer first and second class, with first class providing reserved, more spacious seating that can be worth the modest extra cost on longer or busier journeys. Stations in major cities are modern and central, making rail a convenient option. Services are popular with both locals and visitors, so the network strikes a good balance of comfort, affordability and reliability. For routes between the big cities, the train is often the most pleasant and stress-free choice compared with driving or long-distance buses.
Booking, Classes and Where Trains Don't Go
For popular routes and peak travel periods, booking ahead is recommended, particularly if you want a reserved seat in first class; second class is cheaper but can be busier and may be unreserved on some services. Tickets can typically be bought at stations and through official channels, and fares are generally good value. Arrive with some time to spare, keep your ticket handy for checks, and watch your belongings in crowded carriages as you would anywhere. Importantly, the rail network does not reach every destination. There is no train to Essaouira, Chefchaouen or the Sahara, among others. For these, you will use intercity buses, with CTM and Supratours being well-regarded operators, or shared grand taxis for shorter hops. Supratours services often connect conveniently with the rail network. Planning a mix of train and bus segments lets you reach almost anywhere comfortably, using fast, scenic trains where they exist and reliable coaches to fill the gaps.
Quick tips
- Book first class ahead on busy routes for a reserved, roomier seat.
- Keep your ticket accessible for onboard inspections.
- Use CTM or Supratours buses where trains don't run.
- Allow time at stations and watch belongings in crowded carriages.
Is there a train to Essaouira or Chefchaouen?
No, neither town has a railway station. Reach Essaouira and Chefchaouen by intercity bus, such as CTM or Supratours, or by shared grand taxi. Supratours buses often link conveniently with ONCF train services.
Should I book train tickets in advance?
For popular routes and busy periods, booking ahead is wise, especially for reserved first-class seats. Second class is cheaper but can be crowded. Buying early helps secure a seat and a smoother journey.