Morocco Train: Train Stations, Routes, Tickets & Travel Guide
Traveling by train in Morocco is one of the easiest and most comfortable ways to explore the country. Morocco’s national railway operator, ONCF, connects many of the country’s major cities, including Tangier, Rabat, Casablanca, Fes, Meknes, Marrakech, Oujda, Nador, and El Jadida.
The Moroccan railway network combines conventional Al Atlas trains with Al Boraq, the country’s high-speed train linking Tangier, Kenitra, Rabat Agdal, and Casablanca. ONCF also operates TNR services on important regional routes.
Whether you’re planning a city break, an imperial-cities itinerary, or a longer Morocco adventure, trains can make traveling between major destinations much easier.
Morocco Train at a Glance
Railway operator: ONCF
High-speed train: Al Boraq
Conventional trains: Al Atlas
Regional services: TNR
Main railway cities: Tangier, Rabat, Kenitra, Casablanca, Fes, Meknes, Marrakech, Oujda, Nador, El Jadida
Best for: City-to-city travel, Morocco itineraries, day trips and connections between major destinations
Morocco’s railway network is particularly useful along the Tangier–Rabat–Casablanca corridor and the main routes connecting Fes, Meknes, Casablanca and Marrakech. ONCF’s booking system allows travelers to search routes across the national network, including journeys that require connections.
Main Train Stations in Morocco
Several Moroccan cities have important railway stations used by both local residents and international travelers.
Tangier Ville
Tangier Ville is the northern terminus of the Al Boraq high-speed railway.
It is the main station for travelers heading toward:
- Kenitra
- Rabat
- Casablanca
- Fes
- Meknes
- Other northern destinations
Tangier is particularly useful as a starting point for itineraries combining Chefchaouen, Fes and the Sahara Desert.
Rabat Agdal
Rabat Agdal is one of Morocco’s most important railway stations.
It serves:
- Al Boraq
- Al Atlas
- TNR
- Long-distance services
It is the principal Rabat station for travelers using the high-speed train between Tangier and Casablanca.
Rabat Ville
Rabat Ville is centrally located and convenient for visitors staying around the Medina and Hassan district.
It is particularly useful for travelers visiting:
- Hassan Tower
- Mohammed V Mausoleum
- Rabat Medina
- Kasbah of the Udayas
Casablanca Voyageurs
Casa Voyageurs is one of Morocco’s most important railway hubs.
It provides connections between the Al Boraq high-speed network and conventional trains toward destinations including:
- Marrakech
- Fes
- Meknes
- Rabat
- El Jadida
- Tangier
Fes Train Station
Fes is a major railway hub for northern and central Morocco.
It provides connections toward:
- Meknes
- Rabat
- Casablanca
- Tangier
- Oujda
- Marrakech
Fes is also an important starting point for travelers heading toward Merzouga and the Sahara Desert by road.
Marrakech Train Station
Marrakech Railway Station is the southern end of one of Morocco’s most popular rail corridors.
Trains connect Marrakech with:
- Casablanca
- Rabat
- Kenitra
- Settat
- Benguerir
- Other destinations through the ONCF network
The train is particularly useful for travelers combining Marrakech, Casablanca and Rabat.
Al Boraq High-Speed Train
One of the biggest advantages of traveling by train in Morocco is Al Boraq, the country’s high-speed railway.
The current Al Boraq network connects:
Tangier → Kenitra → Rabat Agdal → Casablanca
ONCF describes Al Boraq as providing shorter and more frequent connections between Casablanca and Tangier, while also allowing connections to other Moroccan cities through transfers.
Al Boraq is particularly useful for:
- Tangier to Casablanca
- Tangier to Rabat
- Tangier to Kenitra
- Rabat to Casablanca
- Connections toward Marrakech and Fes
For example:
Tangier → Rabat → Casablanca
is much more convenient by Al Boraq than traveling the same corridor entirely by road.
Al Atlas Trains
Al Atlas is ONCF’s conventional long-distance train service.
It is particularly important for journeys involving cities outside the direct Al Boraq corridor.
Popular Al Atlas routes include:
- Casablanca → Fes
- Casablanca → Marrakech
- Fes → Tangier
- Fes → Oujda
- Nador → Casablanca
- Oujda → Casablanca
- Rabat → Marrakech
ONCF continues to operate Al Atlas services across the national network, with schedules adjusted according to the season and operational requirements.
Morocco Train Routes
Some of the most useful train routes for tourists include:
Tangier to Casablanca
Tangier → Kenitra → Rabat Agdal → Casablanca
This is an Al Boraq high-speed route and one of the most popular train journeys in Morocco.
Rabat to Marrakech
Rabat → Casablanca → Settat → Benguerir → Marrakech
This is generally served by conventional Al Atlas trains.
Casablanca to Fes
Casablanca → Rabat → Kenitra → Meknes → Fes
This is one of the most useful routes for travelers visiting Morocco’s imperial cities.
Fes to Tangier
Fes → Meknes → Tangier
This route is useful for travelers combining Fes with northern Morocco.
Fes to Marrakech
Fes → Meknes → Rabat → Casablanca → Marrakech
This is a longer journey but can be useful for travelers wanting to connect Morocco’s two major tourist cities without flying.
Oujda to Casablanca
Oujda → Taza → Fes → Meknes → Kenitra → Rabat → Casablanca
This route connects eastern Morocco with the Atlantic coast.
Nador to Casablanca
Nador → Taourirt → Guercif → Taza → Fes → Meknes → Kenitra → Rabat → Casablanca
This is an important long-distance connection for travelers starting in northeastern Morocco.
Morocco Train to Marrakech
Marrakech is one of the most popular destinations on the Moroccan railway network.
There is no direct Al Boraq service to Marrakech, but travelers can use Al Atlas services.
Popular combinations include:
Tangier → Casablanca → Marrakech
Rabat → Casablanca → Marrakech
Fes → Casablanca → Marrakech
Marrakech → Casablanca → Rabat
The Casablanca–Marrakech route is particularly useful for travelers who want to combine Morocco’s largest city with the Red City.
Morocco Train to Fes
Fes is another major railway destination.
Travelers can reach Fes from:
- Casablanca
- Rabat
- Meknes
- Tangier
- Oujda
- Nador and other eastern destinations through connections
Fes is particularly useful as a gateway for a Sahara Desert itinerary.
A popular route is:
Tangier → Fes → Merzouga → Sahara Desert → Marrakech
The train takes you to Fes, after which you can continue by private desert tour or road transfer.
Morocco Train to the Sahara Desert
There is no railway station in Merzouga or the Erg Chebbi dunes.
If you want to travel to the Sahara by train, the most practical approach is to take the train to Fes or Marrakech and then continue by road.
One of the most popular combinations is:
Fes → Ifrane → Midelt → Ziz Valley → Erfoud → Merzouga
This section is normally completed by private transfer or desert tour.
Another option is:
Marrakech → Ouarzazate → Dades Valley → Merzouga
again using road transportation after leaving the railway network.
Morocco Train to Chefchaouen
Chefchaouen does not have a railway station.
If you’re traveling by train, you can travel to Tangier and then continue to Chefchaouen by bus, taxi or private transfer.
A popular itinerary is:
Tangier → Chefchaouen → Fes
This works particularly well for travelers who want to combine northern Morocco with the imperial cities.
Morocco Train to Essaouira
There is no train station in Essaouira.
Travelers visiting Essaouira normally use road transportation from:
- Marrakech
- Casablanca
- Agadir
- Safi
A common itinerary is:
Marrakech → Essaouira → Marrakech
The train can still be useful for the larger parts of your Morocco trip, with a bus or private transfer used for Essaouira.
Morocco Train to Agadir
Agadir is currently outside Morocco’s passenger railway network.
If you are traveling from Marrakech or Casablanca to Agadir, you generally need to continue by bus, coach or private transfer.
A practical itinerary can be:
Casablanca → Marrakech by train → Agadir by road
This is particularly useful if you want to combine Morocco’s inland cities with the Atlantic coast.
Buying Morocco Train Tickets
Train tickets can be purchased through ONCF Voyages, the official online booking platform, the ONCF mobile application, station ticket offices and ticket vending machines.
The ONCF Voyages platform allows travelers to:
- Search train schedules
- Buy tickets
- Select travel dates
- Choose available fares
- Select seating where applicable
- Manage reservations
The official ONCF app also provides digital tickets that can be stored directly in the application.
Official ONCF Voyages — schedules and tickets
How Far in Advance Can You Book?
ONCF states that Al Boraq tickets can be purchased up to three months in advance. Booking ahead can be useful when you want a specific departure time or class, particularly during busy periods.
For popular journeys, it is a good idea to check availability before your travel day.
First Class vs Second Class
Moroccan trains generally offer first- and second-class seating, although the exact configuration depends on the train.
First Class
First class can be a good choice for longer journeys if you prefer:
- More personal space
- More comfortable seating
- A quieter environment
- A more relaxed journey
It can be particularly worthwhile for longer routes such as:
Tangier → Fes
or
Fes → Casablanca
Second Class
Second class is generally the more affordable choice and is suitable for most travelers.
For shorter journeys such as:
Casablanca → Rabat
or
Meknes → Fes
second class can be perfectly comfortable.
Morocco Train Prices
Train prices vary according to:
- Route
- Train type
- Travel date
- Class
- Fare type
- Availability
Promotional fares are sometimes available through ONCF.
For example, ONCF’s current 2026 offers include promotional fares on selected Al Boraq and Al Atlas routes. One current return-ticket promotion lists Casablanca–Tangier at 189 MAD instead of 270 MAD, while other examples include Casablanca–Marrakech at 112 MAD and Fes–Casablanca at 116 MAD, subject to the conditions of the promotion.
Because fares and promotions change, it is best to check the official ONCF booking platform for your exact travel date.
Morocco Train for Tourists
The train is particularly useful for travelers who want to explore Morocco independently.
A classic itinerary could be:
Tangier → Rabat → Casablanca → Marrakech
For imperial cities:
Casablanca → Rabat → Meknes → Fes
For northern Morocco:
Tangier → Chefchaouen → Fes
For the Sahara:
Tangier → Fes → Merzouga → Marrakech
And for eastern Morocco:
Nador → Fes → Meknes → Rabat → Casablanca
Using trains for the major city-to-city sections and private transfers for destinations without railway stations gives you a lot of flexibility.
Train or Bus in Morocco?
For major cities connected by rail, the train is often one of the best transportation options.
Choose the train for:
- Tangier
- Rabat
- Casablanca
- Kenitra
- Fes
- Meknes
- Marrakech
- Oujda
- Nador
- El Jadida
Choose a bus or private transfer for destinations outside the railway network, such as:
- Chefchaouen
- Essaouira
- Agadir
- Merzouga
- Ouarzazate
- Dades Valley
- Smaller mountain villages
The best Morocco itineraries often combine both.
Morocco Train and Airport Travel
Trains are particularly useful when connecting major cities with Casablanca, Morocco’s principal international aviation hub.
If you arrive in Casablanca and want to continue to another city, Casa Voyageurs is an important railway connection point.
For example:
Casablanca → Rabat
Casablanca → Fes
Casablanca → Marrakech
Casablanca → Tangier
This makes Casablanca an important starting point for independent travelers.
Morocco Train Travel Tips
A few simple tips can make your journey easier:
- Check your exact departure station before leaving your accommodation.
- Arrive around 15–30 minutes before departure.
- Check the departure screens for your platform and train number.
- Keep your ticket accessible.
- Keep valuables close to you.
- Book popular Al Boraq journeys in advance.
- Allow extra time when traveling to the station by taxi.
- Check the latest ONCF timetable before departure.
- If you have a connection, confirm where you need to change trains.
- For destinations without railway stations, arrange your road connection in advance.
ONCF provides an online timetable tool where you can enter your departure and arrival stations and check current services.
Check current Morocco train schedules on ONCF
Best Time to Travel by Train in Morocco
Train travel is available throughout the year.
However, trains can become busier during:
- Summer
- Christmas and New Year
- Easter holidays
- Moroccan public holidays
- Major festivals
- Ramadan travel periods
During busy periods, booking in advance can make it easier to secure your preferred departure and class.
ONCF can also adjust services for special periods. For example, its 2026 Ramadan travel plan included additional Al Atlas services on the Fes–Casablanca–Marrakech corridor.
Morocco Train and Desert Tours
One of the best ways to combine Morocco’s railway network with a desert adventure is to use the train for the major city connections and a private tour for the Sahara.
For example:
Tangier → Fes by train
Then:
Fes → Ifrane → Midelt → Erfoud → Merzouga
After spending time in the Sahara:
Merzouga → Dades Valley → Ouarzazate → Marrakech
This allows you to experience Morocco’s major cities while also exploring the desert, mountains and traditional villages.
Final Thoughts
Taking the train in Morocco is one of the easiest ways to travel between the country’s major cities.
The national ONCF network combines conventional Al Atlas trains with the high-speed Al Boraq service. Al Boraq currently connects Tangier, Kenitra, Rabat Agdal and Casablanca, while conventional trains extend the network toward Fes, Meknes, Marrakech, Oujda, Nador, El Jadida and other destinations.
For travelers, the biggest advantage is flexibility. You can use the train for long city-to-city journeys and then switch to a bus, taxi or private tour for destinations such as Chefchaouen, Essaouira, Agadir or Merzouga.
Whether you’re planning a short city break or a two-week Morocco adventure, combining Morocco trains with private transfers and desert tours is one of the most convenient ways to discover the country.
⇔ Join us for an exciting and unforgettable two-day tour from Marrakech to the Merzouga desert in southern Morocco! Starting at 6:30 a.m.
⇔ 3 days tour from Marrakech to Merzouga desert is an incredible experience that allows you to explore some of the most stunning landscapes in Morocco.
⇔ 4 days tour from Marrakech to Marrakech passing through the Merzouga Desert is an unforgettable experience, which will allow you to explore some of the most impressive landscapes in Morocco. Here is a suggested itinerary:
⇔ 4 days tour from Marrakech to Marrakech passing through the Merzouga Desert is an unforgettable experience, which will allow you to explore some of the most impressive landscapes in Morocco. Here is a suggested itinerary:
⇔ Absolutely! 3days tour from Marrakech to Fes via the Merzouga desert offers a rich and diverse experience of Morocco’s natural beauty, culture, and history.
⇔ Three-day tour from Fes typically allows for a more leisurely exploration of both natural landscapes and cultural sites en route to Merzouga. Here’s a detailed description of what you might expect on such a tour:
⇔ Four-day tour from Fes to Marrakech allows for a more comprehensive exploration of Morocco’s diverse landscapes, cultural heritage, and historical sites. Here’s a detailed overview of what you might experience on such a tour:
⇔ A three-day tour from Fes to Marrakech via Merzouga offers a captivating journey through Morocco’s diverse landscapes, from historic cities to the Sahara Desert. Here’s an overview of what you might experience on such a tour:
⇔ This reasonably priced 4 days trip from Tangier to Marrakech via the Erg Chebbi Merzouga desert offers an excellent introduction to Morocco’s imperial cities. It includes bustling medinas, incredible ancient sites
⇔ This tour from Tangier to Marrakech 5 days offers a comprehensive experience of Morocco’s diverse landscapes, rich history, and vibrant culture, from the blue city of Chefchaouen
⇔ In this tour from Tangier 6 days to Marrakech you will Discover Tangier with its breathtaking caves, delve into the charming blue streets of Chefchaouen, explore the ancient and magnificent city of Fes with its old medina, palaces, and madrasas.
⇔ A four-day trip from Casablanca to Marrakech allows you to experience the highlights of Morocco’s western region, including historical cities, stunning landscapes, and cultural attractions.
⇔ This itinerary of 6 days tour from Casablanca to Marrakech offers a balanced mix of historical exploration, cultural immersion, and scenic beauty, showcasing the diverse landscapes and heritage of Morocco’s western region.
⇔ This 7 days trip from Casablanca to Marrakech, Morocco, via the desert includes exploration of the blue city of Chefchaouen, visits to the three magnificent Moroccan cities of Rabat, Marrakech, and Fes, excursions
⇔ Casablanca trip to Marrakech 8 days Morocco through the most popular destinations and top attractions in North and South Morocco; the capital, Rabat, the imperial city of Meknes, and Fes. Likewise, the famous Merzouga
⇔ A 2 day itinerary from Agadir to Zagora can include some of the following highlights along the way to make the trip interesting and enjoyable
⇔ Discover the beauty of 3 Days Desert Tour from Agadir to Merzouga. Enjoy centuries of history as you connect with local Berbers.
⇔ A 4-day trip from Agadir to Merzouga allows you to explore different destinations and breathtaking landscapes along the way. Here is a possible detailed itinerary:
⇔ This 7 days trip from Tangier to Marrakech and desert tour will enable our clients who are taking a 7-day trip from Tangier to Marrakech and staying in the Moroccan desert to visit Chefchaouen, as well as Tangier, Marrakech, and Fez across the Sahara
⇔ A camel ride and night in Merzouga is an unforgettable experience that allows you to enjoy the Sahara Desert in Morocco
⇔ A two-night camel trek in the Merzouga Sahara is a fantastic adventure that offers a combination of natural beauty, cultural experiences
⇔ A 3-night Merzouga camel ride in Morocco is an unforgettable experience that will allow you to explore the extraordinary beauty of the Sahara Desert.
⇔ A day trip from Marrakech to Imlil is a great way to experience the natural beauty of the Atlas Mountains and explore some Berber culture
⇔ A day trip from Marrakech to the Ourika Valley is a fantastic way to experience the natural beauty and traditional Berber culture of the Moroccan countryside
⇔ The excursion from Marrakech to Ouzoud waterfalls is one of the most popular in Morocco, as it allows visitors to escape the hustle and bustle of the city and enjoy the beauty
⇔ Discover in this One day trip Marrakech to Ait Ben Haddou Kasbah cross the Celestial Atlas Mountains to track down two of Morocco’s most breathtaking deserts.
⇔ Take a stunning road trip from Fes to the Rif Mountains and Chefchaouen. Explore the charming blue city on foot, a popular destination near Tangier and Ceuta.
