Travelling from Marrakech to Fes by train is one of the most practical ways to cross Morocco between two of its best-known historic cities. The journey is not especially short, but it is straightforward when you understand which train to look for, how long to allow, where the train stops and how to organise the arrival at the other end. For many travellers, the train is also a more comfortable alternative to spending most of a day in a car or on a long-distance bus.
The direct service is operated by Morocco’s national railway company, ONCF, using Al Atlas trains. The journey generally takes about seven hours, although the exact departure and arrival times can change. Engineering works and timetable adjustments are affecting parts of the rail network in 2026, so an old timetable copied from a travel blog should not be treated as a promise for a future date. Check the live journey planner before you book and again shortly before departure. Morocco recorded 19.8 million tourist arrivals in 2025, a 14% increase on 2024, according to the Ministry of Tourism’s latest figures. During busy travel periods, it is sensible to arrange long intercity journeys before you arrive.
Marrakech railway station, Morocco. Photo: Stolbovsky, CC BY-SA 4.0. Original image · Licence.
Is there a direct train from Marrakech to Fes?
Yes. ONCF operates direct Al Atlas trains between Marrakech and Fes. A direct service means you do not normally need to change trains in Casablanca or Rabat. The train travels north through the rail corridor serving central Morocco, calling at stations that can include Benguerir, Settat, Casablanca, Rabat, Kenitra and Meknes before reaching Fes. The exact stops depend on the train selected, so check the itinerary displayed for your travel date rather than assuming every departure has an identical stopping pattern.
The direct train is useful because Marrakech and Fes are both major stops on Morocco’s conventional rail network. You can board in Marrakech and arrive at the Fes railway station without arranging a separate intercity transfer. It is still worth checking the station name on the ticket. Fes station is in the Ville Nouvelle, not inside the old medina, so you will need a taxi or another local transfer for the final part of the journey.
Do not confuse the Al Atlas service with Al Boraq, Morocco’s high-speed train. Al Boraq currently operates on the high-speed corridor linking Tangier and Casablanca. The Marrakech–Fes journey uses the conventional network. Plans to extend high-speed rail southwards do not mean that a high-speed train is already running between Marrakech and Fes.
How long does the train take?
Allow roughly seven hours for the direct journey. Recent ONCF timetable information for the Marrakech–Fes corridor shows journey times close to that figure, but individual departures can differ. The time shown in the booking system is the one to use for your date. If the rail operator changes the timetable for construction work, holiday demand or operational reasons, a printed timetable may no longer be accurate.
Seven hours is long enough that the quality of the journey matters. Choose a departure that fits your day rather than selecting the earliest train automatically. A very early departure can mean leaving your riad before breakfast and arranging a taxi while the streets are quiet. A later train may be easier if you want a relaxed morning, but it can bring you into Fes after dark. Think about your arrival transfer and check-in time as well as the train duration.
Build a margin into the rest of your itinerary. Do not book a tightly timed guided tour in Fes for the same evening, and avoid arranging a non-refundable onward connection that leaves only a short gap after the scheduled arrival. Even when the train is operating normally, the journey is long enough for a delay to affect your plans.
Where do you buy Marrakech to Fes train tickets?
The safest starting point is ONCF’s official booking channel. Use ONCF Voyages or the railway company’s official website at oncf.ma to search for the journey, compare available departures and review the conditions attached to the ticket. The official booking system is the place to confirm the current timetable and fare for your chosen date.
Buying online is convenient because you can check the available departures before travelling to the station. It also gives you a booking record to keep with your travel documents. If you prefer to buy in person, the station ticket office is another option, but do not leave a busy-season journey until the last moment if you have a fixed arrival plan or want a particular class of seat.
Enter the correct date and passenger details carefully. Check whether the ticket is for Marrakech to Fes rather than the reverse direction, and make sure you have selected the intended departure. Keep the ticket accessible on your phone and, if practical, save an offline copy or screenshot in case your mobile connection is unreliable at the station.
Fares can vary with class, availability and the conditions of the ticket. Rather than relying on a price copied from an older article, use the current ONCF booking result. If you are travelling with children, ask how child fares and seat allocation work for the specific service. The same applies to passengers who need assistance or have mobility requirements: contact the operator before the day of travel instead of assuming every station and train offers identical facilities.
What are Al Atlas trains like?
Al Atlas is ONCF’s conventional intercity service. The train is designed for longer journeys between Moroccan cities and is a practical way to travel without having to navigate unfamiliar roads. The experience is different from a luxury tourist train. You are using public transport that also serves Moroccan residents travelling for work, study, family visits and domestic holidays.
Second class is usually the lower-cost option and can be perfectly adequate for a day journey. First class may offer a quieter or more spacious arrangement depending on the train and carriage configuration. The right choice depends on your budget, how much luggage you have and how comfortable you want to be for several hours. Check the seating details shown during booking, because the layout and amenities should not be assumed to be identical across every departure.
Bring water, a snack and something to read. There may be opportunities to buy refreshments during the journey, but you should not rely on a particular catering service being available. A long rail trip is easier when you have what you need at your seat, especially if you have dietary requirements or are travelling with children.
Keep your luggage where you can monitor it. Larger bags may need to be placed in a designated luggage area or at the end of a carriage, while smaller items can stay with you. Avoid blocking aisles and doors. If you are carrying expensive camera equipment or essential medication, keep those items in a smaller bag that remains close to you.
What happens at Marrakech railway station?
Marrakech railway station is in the newer part of the city, west of the historic medina and close to the Guéliz area. It is not the same place as Jemaa el-Fna or the main medina gates. If you are staying in a riad inside the old city, arrange a taxi or a hotel transfer and allow extra time for traffic and the final walk through pedestrian streets.
Try to reach the station with enough time to find the correct platform and carriage. The station can be busy, particularly around popular departures and holiday periods. Check the departure boards, listen for announcements and compare the train number on the board with the number on your ticket. If you are uncertain, ask station staff rather than following someone who approaches you outside the station offering unofficial assistance.
Do not assume that a taxi can drop you directly at the door of every riad. Some accommodation is located in narrow lanes where vehicles cannot enter. Confirm the closest accessible meeting point with your property and agree how you will reach the station with your bags. This is especially important for travellers with large suitcases, older visitors and families with young children.
What happens when you arrive in Fes?
Fes railway station is in the Ville Nouvelle, outside Fes el-Bali, the historic medina. The medina is a large pedestrian area with narrow lanes, uneven surfaces and many small entrances. A taxi can take you to a suitable gate or drop-off point, but it may not be able to reach the door of your riad.
Before leaving Marrakech, message your accommodation in Fes with your expected arrival time. Ask which gate or meeting point is easiest for a taxi to reach and whether the property can arrange a porter or a person to meet you. A clear meeting arrangement is more useful than simply giving a driver the name of a riad that may be difficult to locate inside the old city.
Use an official taxi rank or a transfer arranged through your accommodation. Agree the destination and fare before starting a journey if the meter is not being used. Keep your phone charged and have the address written down, because street names and map pins do not always make the final approach obvious inside the medina.
Should you travel by train, bus or private car?
The train is a strong choice when you want a direct intercity journey and do not need to stop at several places along the way. It removes the stress of driving and allows you to sit, read or rest for much of the trip. It is also useful for independent travellers who are building a route around Morocco’s main rail-connected cities.
A long-distance bus can be useful if the departure time or destination is more convenient than the train. Bus operators may serve routes or stations that do not align perfectly with the railway network. Compare the full journey, including the bus terminal transfers at both ends, luggage rules and the arrival time. A lower ticket price is not necessarily a better deal if it creates an expensive taxi transfer or a late arrival.
A private car gives you more flexibility. You can stop in smaller towns, visit places away from the railway and travel at your own pace. It can make sense for a family or a group sharing the cost, particularly if the route includes a detour to the Middle Atlas or a rural guesthouse. The trade-off is the need to manage traffic, navigation, parking and the long drive. A one-way rental may also involve a drop-off fee.
Flying is rarely the most useful option for this particular city pair when the purpose is to travel between the centres. Airports require additional transfers and check-in time, and a flight can save less door-to-door time than the headline flight duration suggests. Compare the full journey rather than only the time in the air.
Can you stop in Casablanca, Rabat or Meknes?
Yes, but a stopover needs to be planned as part of the itinerary. Casablanca and Rabat are important cities on the rail corridor, while Meknes is a practical gateway to the historic sites of the region. If you want to explore one of them, consider buying separate tickets and spending at least one night rather than trying to leave the station, see the city and return to the next train in a very short window.
Meknes is particularly convenient if you want to visit the nearby Roman site of Volubilis or the holy town of Moulay Idriss. Those visits require additional transport beyond the station, so a planned overnight stay is more comfortable than trying to fit everything into a brief transfer. Rabat is worth considering for its historic centre, coastal setting and museums. Casablanca is more of a major commercial city, but it has architectural and cultural attractions that can justify a stop.
Do not assume that a ticket allows you to leave the train and continue later on the same fare. Ticket conditions vary, and missing a connection can create a new cost. If you intend to break the journey, ask ONCF or buy the separate legs you actually plan to use.
How to combine Marrakech and Fes in one Morocco trip
For a first visit, four to six nights split between the two cities is a reasonable starting point. Marrakech deserves at least two full days if you want time for the medina, gardens, museums and a slower evening. Fes also rewards more than a rushed visit. Its medina is dense, and a guided walk can help you understand the craft districts, historic schools, markets and architecture.
A simple route is to begin in Marrakech, take the direct train north, stay in Fes for two or three nights and then continue towards Meknes, Rabat or Tangier. Another option is to travel in the opposite direction if your international flights make that more convenient. The best order is the one that avoids unnecessary backtracking and gives you a comfortable arrival at your first accommodation.
If you want to add the Sahara, remember that the desert is not a short detour from Fes or Marrakech. Merzouga and the Erg Chebbi dunes require a substantial overland journey, often with an overnight stop or a multi-day route. Do not try to add a desert camp to a tight city-to-city schedule without allowing enough time for the drive and the return.
Morocco has a wide range of travel experiences, from historic cities to mountain landscapes and Atlantic beaches. If you are still comparing destinations, our overview of African countries to consider for a holiday provides a wider regional starting point. Travellers interested in combining several islands can also compare the logistics with our guide to island hopping in Cape Verde. For another North African route built around historic cities and desert landscapes, see our seven-day Tunisia itinerary.
When is the best time to travel between Marrakech and Fes?
The train operates throughout the year, so the question is more about the weather and the wider trip than about a single travel season. Spring and autumn are often comfortable periods for visiting Morocco’s inland cities. Summer can be very hot in Marrakech and Fes, while winter days may be mild but nights can be cold, especially in accommodation with limited heating.
During major holidays and school breaks, trains and accommodation can be busier. If you have fixed dates, check the timetable early and book once your plans are settled. During Ramadan, public schedules and the rhythm of city life may change, so allow flexibility around meal times and opening hours. Do not assume that every restaurant, attraction or transport service will operate exactly as it does in another month.
Rail works can also affect the practical timetable. The current ONCF information should take priority over a generic statement about how often trains usually run. The railway company publishes service information and route updates through its official channels. Check again shortly before travel, particularly if your onward plans depend on arriving at a specific hour.
Practical advice for a smoother journey
Keep your passport and ticket accessible, but do not leave valuables in an open pocket or unattended on a seat. Carry a small amount of cash for station refreshments or a taxi, while using a bank card where it is accepted. If you need a taxi at either end, agree the destination and fare clearly before setting off.
Pack with the station and medina in mind. A large wheeled suitcase can be awkward on uneven streets and in riads reached by stairs. If you are travelling with a lot of luggage, ask your accommodation whether it can arrange assistance from the nearest vehicle access point. A smaller suitcase or backpack is easier to manage when you are changing cities.
Be realistic about the first evening in Fes. After a seven-hour train ride and a transfer through the Ville Nouvelle, you may not want to begin a long medina walk immediately. Keep the arrival day light, eat near your accommodation and start exploring the following morning.
Frequently asked questions
Is the Marrakech to Fes train direct?
Yes. ONCF operates direct Al Atlas trains between the two cities. Check the exact departure and stopping pattern in the official booking system for your date.
How many hours is the train from Marrakech to Fes?
Plan for about seven hours, but use the journey time shown for your selected departure. Timetables can change, including during infrastructure works.
Is first class worth it?
It can be worthwhile for a journey of this length if you value a quieter carriage or more comfortable seating. Compare the actual fare difference and seat details when booking.
Can you buy tickets at the station?
Station ticket offices are an option, but online booking through ONCF is convenient and lets you check availability in advance. Book earlier if your travel date is fixed or falls in a busy period.
Does the train arrive inside the Fes medina?
No. Fes station is in the Ville Nouvelle. You will need a taxi or another transfer to reach the old medina, and your riad may be accessible only on foot from a nearby gate.
Plan the journey around your arrival, not just the timetable
The train makes travelling between Marrakech and Fes manageable without hiring a car, but the best experience comes from thinking beyond the railway seat. Choose a departure that suits your accommodation, allow time for station transfers, understand where the Fes station is located and leave enough room in your schedule for a delay. Those details make the difference between a straightforward travel day and a rushed one.
Safarilala is a travel platform that helps travellers discover destinations, accommodation and experiences and connect with suitable providers. When planning a Morocco itinerary, the same approach applies: choose the route first, then match your accommodation and local transport to the actual places you want to visit.
Related
Join The Discussion