A Morocco train map makes itinerary planning much easier—but only if you also understand where the railway ends. Trains work very well between Tangier, Rabat, Casablanca, Meknes, Fes and Marrakech, while many famous destinations remain road-only.
My practical advice is to use rail for Morocco’s northern and central city corridor, then switch to a bus, transfer or rental car for Chefchaouen, Essaouira, Agadir, the High Atlas and the Sahara. This guide shows the useful routes, the stations to know and the connections you need beyond the tracks.
Table of Contents
Table of Contents
Morocco train network map: the routes that matter to travelers
Morocco’s passenger rail network is operated by ONCF. The main tourist rail spine runs from Tangier south through Kenitra, Rabat and Casablanca, with major inland connections to Meknes, Fes and Marrakech.
There are also rail branches or connections toward El Jadida, Oujda and Nador, but most first-time visitors will spend the majority of their train time on the Tangier–Casablanca, Casablanca–Marrakech and Casablanca–Fes corridors.
Use this simplified planning map to understand the network:
| Rail corridor | Main stations or destinations | Best use for travelers |
|---|---|---|
| Al Boraq high-speed line | Tanger Ville → Kenitra → Rabat Agdal → Casa Voyageurs | The fastest route between northern Morocco, Rabat and Casablanca |
| Casablanca–Marrakech line | Casablanca → Settat → Benguerir → Marrakech | Continuing from Casablanca or Al Boraq to Marrakech |
| Central and eastern line | Kenitra/Casablanca connections → Meknes → Fes → Taza → Oujda | Imperial-city trips and journeys toward eastern Morocco |
| Other useful branches | Connections toward El Jadida and Nador | Regional journeys outside the main tourist corridor |

This is a practical route guide, not a geographically exact railway diagram. The key point is that the network is strongest between major northern and central cities. It does not cross the High Atlas to Ouarzazate or the Sahara, and it does not continue down the Atlantic coast to Essaouira or Agadir.
For broader advice on combining buses, trains, transfers and rental cars, see this guide to getting around Morocco.
Does the train go to Morocco’s main tourist destinations?
Yes, trains are a very good choice for Tangier, Rabat, Casablanca, Meknes, Fes and Marrakech.
No, trains do not reach several major destinations that visitors often assume are on the railway:
- Chefchaouen
- Tetouan
- Essaouira
- Agadir
- Ouarzazate
- Aït Ben Haddou
- Imlil
- The High Atlas Mountains
- Dades Valley
- Todra Gorge
- Merzouga and the Erg Chebbi dunes
For these places, rail can still be useful for the first part of your journey—for example, taking the train to Marrakech before continuing to Essaouira, Imlil or Ouarzazate by road. But there is no final train connection.
Al Boraq: Morocco’s high-speed Tangier–Casablanca route
Al Boraq is Morocco’s high-speed train service and the fastest, simplest rail option on the northern Atlantic corridor. It links:
- Tangier
- Kenitra
- Rabat Agdal
- Casa Voyageurs in Casablanca
ONCF states that Al Boraq trains can reach speeds of up to 320 km/h. For travelers, the practical benefit is not the technical speed figure but the ease of moving between Tangier, Rabat and Casablanca without a long road journey.
Use Al Boraq when:
- You are travelling between Tangier and Casablanca.
- You are staying in Rabat or connecting there.
- You are arriving in Tangier and continuing south on the same day.
- You want the most time-efficient rail option along this corridor.
For Marrakech, Fes, Meknes or other destinations, you may need to change onto a conventional train connection.
Check current departures through the ONCF timetable search rather than building an itinerary around fixed online schedules that may have changed. ONCF also provides information about Al Boraq.
Tanger Ville is the station you usually need
For central Tangier and Al Boraq, the important passenger station is Tanger Ville.
Do not confuse it with Tanger Med, the large port complex located well outside central Tangier. Tanger Med is relevant for ferry and port travel, but it is not the central city railway station most visitors need.
Tanger Ville is one of the easier stations for visitors to use. If Tangier is the first stop on your trip, this Tangier travel guide can help you plan the onward stay.
Al Atlas: the conventional trains to Marrakech, Fes and beyond
Al Atlas is ONCF’s conventional intercity train network. It is the service travelers use beyond the core Al Boraq route, including key journeys such as:
- Casablanca to Marrakech
- Casablanca to Fes
- Marrakech to Fes, generally involving the Casablanca corridor
- Fes to Meknes
- Rabat to Marrakech
For many Morocco itineraries, Al Boraq and Al Atlas work together:
- Take Al Boraq between Tangier, Rabat and Casablanca.
- Change at Casablanca for Marrakech, Fes, Meknes or other rail-served destinations.
- Continue by bus, transfer or car where the railway ends.
This is usually much more efficient than treating all long-distance travel as a bus journey. But it only works well when your route follows the rail network.
The most useful Morocco train routes for visitors
Tangier to Rabat and Casablanca
This is the clearest use case for Al Boraq. The route connects the north of the country to Rabat and Casablanca quickly and avoids a much longer road transfer.
It suits travelers who want to combine Tangier’s northern character with the capital, Casablanca or a later onward journey to Marrakech.
Casablanca to Marrakech
The Casablanca–Marrakech route is one of Morocco’s most useful conventional rail journeys. It is a sensible option when you want to avoid driving or arranging a private transfer between the country’s largest city and Marrakech.
Marrakech station is convenient for Gueliz, and taxis are readily available outside. It is not inside the medina, so plan a short taxi ride if your accommodation is near Jemaa el-Fna or within the old city.
For help choosing where to stay and what to expect on arrival, see the Marrakech travel guide.
Casablanca to Fes via Meknes
The rail connection between Casablanca, Meknes and Fes is especially useful for a classic imperial-cities itinerary. Meknes makes an easy stop or visit on the way, while Fes is a major destination in its own right.
Fes railway station is in Ville Nouvelle, not inside Fes el-Bali. A petit taxi is the normal onward option toward accessible medina gates such as Bab Boujloud. Give the driver your riad’s name and, ideally, the property’s phone number. Many riads are inside pedestrian lanes, and the right vehicle-accessible drop-off gate matters.
Rabat to Marrakech
Rabat and Marrakech are connected through the Casablanca corridor. This is useful if you want to combine the capital with Marrakech without returning to Tangier or relying entirely on a road transfer.
It is not the route to choose if your main goal is the coast south of Marrakech or the mountains—those still require road transport after Marrakech.

Where trains do not go—and the best way to continue
The most important lesson from any train map of Morocco is knowing where the railway stops.
Chefchaouen: continue from Tangier or Fes by road
Chefchaouen has no passenger railway station. The practical approach is to reach Tangier or Fes by train, then continue by:
- CTM bus
- Private transfer
- Other road transport
Tangier is often the natural connection point for travelers coming from the north or arriving by ferry, while Fes can work well if you are following an inland itinerary.
Check current bus options directly with CTM before fixing your connection, especially on weekends and holidays.
Essaouira and Agadir: use Marrakech as your rail gateway
Neither Essaouira nor Agadir has a passenger railway station.
For Essaouira, the usual rail-and-road combination is to take the train to Marrakech, then continue by road. For Agadir, Marrakech is also a useful rail gateway, although the onward journey is longer.
For Essaouira, I often recommend checking Supratours from Marrakech; for Agadir, compare the available coach services for your travel date. Always confirm current destinations, schedules and fares with Supratours before booking.
The trade-off is simple: trains are excellent for reaching Marrakech, but they do not remove the need for a road journey to Morocco’s southern Atlantic coast.
Ouarzazate and Aït Ben Haddou: Marrakech is the rail endpoint
There is no train to Ouarzazate or Aït Ben Haddou. The same applies to the road through the High Atlas that connects Marrakech with these destinations.
Take the train to Marrakech, then continue by:
- Private transfer
- Shared excursion
- Rental car
- A multi-day Sahara tour or road itinerary
Aït Ben Haddou is often combined with Ouarzazate and a longer route toward the desert. It is not a practical independent day trip by train because there is no rail branch across the Atlas.
Imlil and the High Atlas: road transport only
Imlil, a common base for High Atlas walks and Mount Toubkal-area trips, has no rail connection. Neither do the wider High Atlas valleys.
From Marrakech, use a private transfer, shared excursion, rental car or other road transport. This is normally a straightforward change of transport, but it is important to allow enough time: a train itinerary ends in Marrakech, not in the mountains.
Merzouga and the Sahara: plan it as a road journey
Merzouga has no passenger train station. From Fes, a Supratours coach is one practical road connection toward Merzouga; check the current timetable before building it into your itinerary.
From Marrakech, the Sahara should be treated as a long road journey or a multi-day route, not as a train trip. Even if you use rail to reach Marrakech, the desert section involves substantial overland travel through the Atlas and southeast Morocco.
The same warning applies to Dades Valley and Todra Gorge: trains do not reach them.
Which Casablanca station should you use?
Casablanca has more than one station, so do not simply tell a taxi driver, “Casablanca train station.”
Casa Voyageurs for most intercity travelers
Casa Voyageurs is the key station for most visitors making intercity journeys. It is served by Al Boraq and major onward rail connections, making it the usual station for travel to or from Tangier, Rabat, Marrakech and Fes.
If your ticket says Casa Voyageurs, use that exact name when arranging a taxi or transfer.
Casa Port is a different central station
Casa Port is a separate central station used by regional services, including trains toward Rabat and the Mohammed V Airport corridor. It can be convenient for central Casablanca, but it is not interchangeable with Casa Voyageurs. Always follow the exact station printed on your ticket.
Using Marrakech and Fes stations without unnecessary stress
Arrive early at Marrakech station
When you are unfamiliar with Marrakech station, arriving 20 to 30 minutes early is a comfortable plan. It gives you time to check the departure board, find the correct platform and settle into your carriage without rushing.
Taxis are readily available around the station. As at other major stations, know your destination before getting in, use the meter where applicable or agree a fare clearly, and avoid vague inflated tourist quotes.
Confirm luggage storage before relying on it
Do not build a tight itinerary around finding luggage lockers at Marrakech station. Storage arrangements can change, so ask your accommodation or a verified luggage-storage provider in advance if you need to leave bags between check-out and your train.
In Fes, plan for the medina gate—not just the medina
Fes station is outside the old medina in Ville Nouvelle. A petit taxi can take you toward Bab Boujloud or another accessible entrance, but your riad may be several minutes away on foot through pedestrian streets.
Send your accommodation a message in advance if you are arriving late or with heavy luggage. Ask which gate to use and keep its phone number available for the driver.
First class or second class on Moroccan trains?
Both classes can work, but first class is most worthwhile when comfort and predictability matter.
In my work with travelers, I generally find first class most useful for:
- Journeys longer than roughly two hours
- Busy weekends and holiday periods
- Travelers carrying more luggage
- Anyone who values greater comfort and better seat certainty

Second class can be perfectly practical for shorter routes or quieter travel days. The better value depends on the journey, not just the ticket price.
Do not assume that every carriage will feel identical or that air-conditioning performance is guaranteed on every train. Booking earlier gives you more choice when a particular class or departure matters.
Booking, luggage and station habits that make train travel easier
Book Al Boraq ahead when your schedule matters
Advance booking is sensible for Al Boraq, especially if you want a particular departure or class. Friday and Sunday travel, public holidays and busy travel periods are the times to plan furthest ahead.
For Al Atlas, same-day tickets can often be practical outside busy periods. Still, do not leave it too late if you have a flight, hotel check-in or onward bus connection to protect.
Keep luggage manageable
Bring luggage you can lift and manage yourself. Overhead racks can be small, while larger suitcases may need to go in the available end-of-carriage or floor storage. Keep valuables with you and avoid blocking aisles or doors.
Check the latest passenger conditions through ONCF’s traveler information and downloads before travel.
Use normal taxi precautions outside stations
Tanger Ville and Casa Voyageurs are among the easier and more modern stations for visitors. Even so, use ordinary taxi precautions at every station:
- Know your destination and the station name before arriving.
- Use the meter where it applies, or clarify the fare before departure.
- Keep your hotel or riad address available on your phone.
- Decline vague offers that do not state a clear price or destination.
Build an itinerary around rail corridors, not around wishful connections
The smartest Morocco itinerary combines rail and road rather than forcing every destination onto a train map.
A practical structure could look like this:
- Use Al Boraq for Tangier, Rabat and Casablanca.
- Use Al Atlas for Marrakech, Fes and Meknes.
- Switch to buses, private transfers or a rental car for Chefchaouen, Essaouira, Agadir, the High Atlas and the Sahara.
- Leave buffer time when connecting from a train to a long-distance bus or desert route.
Trains are one of the best ways to link Morocco’s big northern and central cities. But some of the country’s defining experiences begin precisely where the tracks end.
FAQ
Is there a train from Tangier to Marrakech?
Yes. Use the Tangier–Casablanca corridor, then continue to Marrakech on the conventional network. Some departures require a change, so check the current ONCF timetable for your date.
Does the train go to Chefchaouen?
No. Chefchaouen has no passenger railway station. Travel by train to Tangier or Fes, then continue by CTM bus, private transfer or other road transport.
Can I take a train to the Sahara in Morocco?
No train goes to Merzouga, Dades Valley or Todra Gorge. From Fes or Marrakech, the desert section must be completed by coach, transfer, rental car or multi-day tour.
Which Casablanca station should I use for Al Boraq?
Use Casa Voyageurs for Al Boraq. Casa Port is a different central station, so always check the station printed on your ticket.
Is first class worth it on Moroccan trains?
First class is most useful on longer journeys, during busy weekends or holidays, and when comfort and an assigned seat matter. Second class remains practical for many shorter trips.







