Traveling Morocco by train is one of the easiest and most comfortable ways to explore several of the country’s major cities.
From Casablanca and Rabat to Marrakech, Fes and Tangier, train travel in Morocco allows visitors to move between popular destinations without renting a car.
Morocco has a modern railway network operated by ONCF Morocco, with conventional trains and the high-speed Al Boraq Morocco service connecting important cities across the country.
In this complete guide, you’ll discover the main Morocco train routes, how to buy Morocco train tickets, the cities you can reach by rail and useful tips for planning your journey.
Is Traveling Morocco by Train a Good Idea?
For many travelers, traveling Morocco by train is a practical alternative to driving.
The railway network connects several of the country’s most visited cities, making it easy to create a multi-city itinerary.
Popular train routes in Morocco include:
- Casablanca to Rabat
- Casablanca to Marrakech
- Casablanca to Fes
- Tangier to Rabat
- Tangier to Casablanca
- Rabat to Fes
- Rabat to Marrakech
- Fes to Meknes
For travelers visiting several urban destinations, train travel in Morocco can save time and reduce the stress of driving.
Morocco Train Routes: Understanding the Railway Network
The national railway system is managed by ONCF Morocco.
The network connects many major cities in northern and central Morocco, with different train services depending on the destination.
The two main services travelers are likely to use are Al Boraq and Al Atlas.
Al Boraq Morocco: The High-Speed Train
Al Boraq Morocco is the country’s high-speed railway service.
It connects Tangier with Kenitra, Rabat and Casablanca.
This makes it particularly useful for travelers exploring northern Morocco and the Atlantic coast.
If you are traveling from Tangier to Rabat or Casablanca, Al Boraq is generally the fastest railway option.
The service has also made it easier to combine destinations in northern Morocco with cities farther south.
Al Atlas Trains
Al Atlas trains operate on many conventional Morocco train routes.
They connect destinations such as Marrakech, Casablanca, Rabat, Meknes and Fes.
These trains are slower than Al Boraq but provide access to a wider part of the Moroccan railway network.
Best Cities to Visit by Train in Morocco
Several of Morocco’s most popular cities can easily be reached by train.
Casablanca
Casablanca is one of the most important railway hubs in Morocco.
Casa Voyageurs station connects the city with Rabat, Marrakech, Tangier, Fes and other destinations.
For travelers planning to explore several cities, Casablanca can be a convenient starting point for a Morocco by train itinerary.
Rabat
Rabat is one of the easiest cities to reach by rail.
The Moroccan capital is located on a major railway corridor connecting Casablanca, Kenitra, Tangier and other cities.
Two important stations are Rabat Ville and Rabat Agdal.
The city works well as a stop between Casablanca and northern Morocco.
Marrakech
Marrakech is connected by train with Casablanca, Rabat and several cities farther north.
Marrakech railway station is located outside the Medina in the modern part of the city.
Travelers heading farther south toward destinations such as Agadir usually continue their journey by bus, rental car or private transfer.
Fes
Fes is another important destination for train travel in Morocco.
The city is connected to Rabat, Casablanca, Meknes and other destinations.
Taking the train is a convenient way to combine Fes with other imperial cities during the same trip.
Tangier
Tangier is particularly easy to reach thanks to Al Boraq Morocco.
The high-speed railway connects Tangier with Kenitra, Rabat and Casablanca.
Travelers visiting Chefchaouen or Tetouan can also use Tangier as a transport hub before continuing by bus, taxi or private transfer.
Meknes
Meknes is well connected to the national railway system and can easily be included in a Morocco itinerary.
Its location between Fes and Rabat makes it a convenient stop for travelers exploring Morocco’s imperial cities.
How to Buy Morocco Train Tickets
Buying Morocco train tickets is relatively straightforward.
Tickets are available through ONCF’s official services and at railway stations.
Travelers who already know their itinerary may prefer to buy tickets online before departure.
Tickets can also be purchased directly from ticket counters at larger stations.
During busy travel periods, booking in advance can be helpful.
Train schedules and prices may change, so checking the latest information before traveling is recommended.

Do You Need to Book Morocco Train Tickets in Advance?
For many journeys, you can buy your ticket close to the departure time.
However, purchasing Morocco train tickets earlier can be useful during:
- weekends
- summer holidays
- Moroccan public holidays
- religious celebrations
- school holidays
- major events
Popular routes may become busier during these periods.
Booking ahead can also help you organize the rest of your itinerary more easily.
First Class or Second Class on Morocco Trains?
Most long-distance trains offer different travel classes.
Second Class
Second class is usually the most affordable option.
It is suitable for many travelers and works particularly well for shorter journeys.
First Class
First class can offer additional comfort during longer trips.
Travelers carrying luggage or spending several hours on the train may prefer the extra space and quieter environment.
The best option depends on your budget, journey length and personal preferences.
Major Morocco Train Stations
Understanding the main railway stations can make train travel in Morocco easier.
Some important stations include:
- Casa Voyageurs in Casablanca
- Rabat Ville
- Rabat Agdal
- Marrakech Railway Station
- Fes Railway Station
- Tangier Ville
- Meknes Railway Station
Large cities can have more than one railway station, so always check your departure station carefully before traveling.
Traveling Morocco by Train With Luggage
Train travel can be convenient if you are carrying normal travel luggage.
However, traveling light makes it easier to move through stations and board trains.
Keep important belongings such as passports, money and phones close to you.
A small backpack or day bag is useful for storing everything you need during the journey.
For longer trips, keeping water and snacks with you can also make the journey more comfortable.
Can You Travel All Around Morocco by Train?
Not every destination in Morocco has a railway station.
This is one of the main things travelers should understand when planning Morocco by train.
Several popular destinations are not directly connected by railway.
These include places such as:
- Chefchaouen
- Essaouira
- Agadir
- Merzouga
- Ouarzazate
Travelers usually combine trains with buses, taxis, private transfers or rental cars.
For example, you can travel by train to Marrakech before continuing toward southern Morocco by road.
This combination makes it possible to explore a large part of the country without renting a car for the entire trip.
Suggested Morocco by Train Itinerary
A Morocco by train itinerary can include several of the country’s most interesting destinations.
Tangier
Start your journey in northern Morocco.
Explore the Medina, the coastline and the historic neighborhoods before taking the train south.
Rabat
Continue to Morocco’s capital.
Visit landmarks such as the Kasbah of the Udayas and Hassan Tower while enjoying a quieter atmosphere than some of Morocco’s larger tourist cities.
Casablanca
Travel to Casablanca and explore Morocco’s largest city.
The Hassan II Mosque and Atlantic waterfront are among the city’s most recognizable attractions.
Marrakech
Continue south toward Marrakech.
Spend time exploring the Medina, traditional souks, gardens and historic monuments.
Fes
You can also include Fes in your itinerary to discover one of Morocco’s oldest and most fascinating cities.
Its historic Medina and traditional architecture provide a very different experience from Casablanca or Marrakech.
Morocco by Train or Rental Car?
Choosing between Morocco by train and renting a car depends on your itinerary.
Train travel is usually a good choice when visiting large cities connected by railway.
A rental car becomes more useful when traveling to remote destinations, mountain areas, rural villages or places outside the railway network.
Many travelers combine both options.
For example, you can take trains between Casablanca, Rabat, Tangier and Marrakech before renting a car for a road trip through southern Morocco.
Morocco by Train vs Bus
Buses are another important part of public transportation in Morocco.
They are especially useful for destinations without railway connections.
Trains can be more convenient for major city-to-city routes, while buses offer access to a larger number of towns and tourist destinations.
Combining trains and buses is often one of the most practical ways to travel around Morocco without a car.
Tips for Train Travel in Morocco
A few simple tips can make your journey easier.
Arrive at the station early, especially in large cities.
Check your departure station carefully.
Keep your ticket accessible throughout the journey.
Check current timetables before leaving your accommodation.
Avoid planning extremely tight connections between trains, buses and flights.
Keep important belongings with you.
Carry water and snacks during longer journeys.
Whenever possible, leave some flexibility in your itinerary.
Is Morocco Easy to Explore Without a Car?
Yes, especially if your trip focuses on major cities.
The combination of trains, buses, taxis and private transfers makes it possible to explore many areas of the country without driving.
Cities such as Casablanca, Rabat, Marrakech, Fes, Meknes and Tangier are particularly suitable for travelers relying on public transportation.
Destinations outside the railway network require additional planning, but they are still accessible using buses or transfers.
Why Choose Train Travel in Morocco?
There are several reasons why train travel in Morocco is popular with visitors.
You do not need to navigate unfamiliar roads.
You can travel comfortably between major cities.
Railway stations are generally located close to urban areas.
You can combine train journeys with buses or transfers.
And most importantly, traveling Morocco by train allows you to enjoy the landscape while moving between destinations.
Final Thoughts on Traveling Morocco by Train
Exploring Morocco by train is one of the most practical ways to visit several of the country’s major cities.
The network operated by ONCF Morocco connects destinations such as Casablanca, Rabat, Marrakech, Fes, Meknes and Tangier.
The Al Boraq Morocco high-speed service also makes travel between Tangier, Rabat and Casablanca faster and easier.
By combining the main Morocco train routes with buses and private transfers, travelers can build a varied itinerary without needing a rental car for the entire trip.
Before traveling, check current schedules and Morocco train tickets, choose the route that best fits your itinerary and leave some flexibility between connections.
Train travel can then become more than just transportation — it can be part of the experience of discovering Morocco.








Blog comments
Questions about this guide? Leave a comment below — we read and answer every one.
No comments yet. Be the first to share your thoughts!