Rabat to Marrakech: Train, Travel Time & Local Tips

Travelers boarding an intercity train from Rabat to Marrakech

For most travelers, the Rabat to Marrakech train is the best balance of price, comfort and simplicity. Direct ONCF Al Atlas services normally connect the two cities without requiring a change in Casablanca. Under the published timetable, the journey takes about four hours, although current railway construction can lead to timetable changes.

A private transfer is the easier choice for families, small groups or anyone travelling with several large suitcases, as it avoids taxis and luggage handling at both stations. Driving is useful only when you need a car after Marrakech, while buses are a workable but generally slower backup.

Is the train from Rabat to Marrakech worth taking?

Yes. For solo travelers and couples carrying normal luggage, the direct train is usually the most practical way to travel from Rabat to Marrakech. It avoids motorway tolls, fuel costs, parking concerns and the stress of driving into Marrakech.

The journey is primarily an efficient intercity transfer rather than a scenic rail excursion, but there is a noticeable transition along the route. The greener plains around Rabat gradually give way to the drier, red-toned landscape around Marrakech.

Allow approximately:

  • About four hours from station to station under the published timetable.
  • About five to six hours door to door once you include getting to the station, arriving before departure, boarding, collecting luggage and taking a taxi at the other end.

This is also why Rabat and Marrakech should not normally be treated as a day trip from one another. A return journey can consume a large part of the day before you have done any proper sightseeing.

Table of Contents

Taking the Rabat to Marrakech train

Direct Al Atlas trains usually avoid a Casablanca change

Direct Al Atlas services operate between Rabat and Marrakech, so a Casablanca transfer is not normally needed for a standard journey.

Current timetable note: ONCF is adjusting services as work advances on the Kenitra–Marrakech high-speed line. Check the live ONCF timetable for your travel date and review ONCF construction updates before relying on an older timetable.

Casablanca may still appear in your plans if you are arriving from Mohammed V Airport, connecting from another city, or booking an itinerary with a particular connection. Casa Voyageurs is an important interchange station, but it is not automatically part of every Rabat–Marrakech trip.

Do not confuse this route with Al Boraq. Morocco’s high-speed Al Boraq service runs on the northern corridor; Marrakech is reached by conventional or connecting ONCF services rather than a direct high-speed train from Rabat.

Use the ONCF schedule search to check the actual train pattern for your date, particularly if you are travelling on a Friday, Sunday or during a holiday period.

How long does the train from Rabat to Marrakech take?

Allow about four hours between Rabat and Marrakech stations under the published timetable. The exact duration depends on the train and any temporary operating plan, so use the live ONCF search for your date rather than planning around the fastest time quoted elsewhere.

For itinerary planning, do not build your day around the shortest possible advertised travel time. A riad inside Marrakech Medina, for example, may require a taxi to a nearby gate followed by a walk through pedestrian lanes.

If you are travelling in the opposite direction, the train Marrakech to Rabat follows the same practical logic: allow more than just the rail journey itself when arranging airport transfers, restaurant reservations or same-day onward travel.

Rabat Ville or Rabat Agdal: which station should you use?

Travelers checking their tickets inside a Rabat railway station
Check whether your train departs from Rabat Ville or Rabat Agdal.

Check your ticket carefully because not every Rabat train necessarily uses the same station.

Rabat Ville for the Medina and central sights

Rabat Ville is usually the best choice for visitors staying near the Medina, Hassan Tower, the Kasbah des Oudayas or central Rabat. It is centrally located and generally makes the onward taxi journey simpler.

Blue petit taxis are the normal option from Rabat Ville towards the main visitor areas. Ask the driver to use the meter. If the meter is not used, confirm the fare before setting off and ask your accommodation what is reasonable for your destination.

Rabat Agdal for Agdal stays and certain connections

Rabat Agdal is a larger, modern station that can be more convenient if you are staying around Agdal or if your onward rail connection uses it.

It is not a problem to depart from Agdal, but visitors based around the old city should not assume it will be as convenient as Rabat Ville. Check the departure station before booking accommodation-side transport.

Arriving at Marrakech railway station

Travelers with luggage outside Marrakech railway station
Marrakech railway station is located in the modern Gueliz area.

Marrakech railway station is in the newer part of the city, close to Gueliz rather than inside the Medina. For many travelers, a petit taxi is the simplest onward option.

For nearby central destinations, including Gueliz and vehicle-accessible Medina drop-off points, ask the driver to use the meter. If the meter is not used, agree the fare clearly before setting off and confirm the best drop-off point with your accommodation.

If you are staying in a riad, ask your accommodation for the closest vehicle-accessible Medina gate before arriving. Taxis cannot enter most of the narrow pedestrian lanes, and the final walk may be short or may involve navigating a more confusing section of the Medina with luggage.


Rabat to Marrakech train fares and booking advice

ONCF fares vary by class, ticket flexibility, availability, promotions and purchase timing. Check the live booking system for your exact train rather than relying on a fixed price range from an older article.

Same-day tickets can be possible, but booking around two to three days ahead is sensible once your itinerary is fixed. Reserve earlier when travelling:

  • On Friday afternoons
  • On Sunday evenings
  • Around Moroccan holidays and school breaks
  • On other high-demand dates
  • When you specifically want first class

The key rule is simple: if first class matters, do not wait until you reach the station on a busy day to think about booking.

ONCF offers online ticket and timetable searches, and travelers can also consult downloadable ONCF timetables where available.

Is first class worth it on this route?

Passengers seated in a first-class compartment on a Moroccan train
First class offers more space for the approximately four-hour journey.

For a journey of around four hours, first class is worth considering if you value additional space, a calmer carriage and an assigned seat where applicable.

It is not essential for everyone. Second class remains a reasonable value option for budget-conscious travelers, especially when travelling solo with a small bag. But first class can make the journey easier for couples, families travelling light, and anyone starting or ending a longer Morocco itinerary.

Do not book first class expecting every carriage to perform identically in every respect. Think of it as the more comfortable option, rather than a guarantee of flawless onboard conditions.


Private transfer from Rabat to Marrakech

A private driver is rarely the cheapest way to travel alone, but it can be the most convenient option for the right group.

Private-transfer quotes vary substantially with the vehicle, group size, pickup point and included waiting time. Ask whether the quote is the total vehicle price and whether it includes tolls, luggage, stops and door-to-door pickup before comparing it with rail tickets for the whole group.

Who should choose a private transfer?

A private transfer is particularly useful for:

  • Families with young children
  • Groups splitting the cost between several people
  • Travelers carrying several large suitcases
  • Couples who prioritize door-to-door convenience
  • Travelers who want flexibility for a stop en route
  • Anyone arriving or departing at an awkward time for train schedules

Train travel is still entirely possible with normal suitcases. However, luggage storage can be limited, boarding is less convenient with bulky bags, and station taxis add an extra step at both ends. Private transport becomes substantially more attractive when a group has several large cases, not simply because someone has more than two bags.


Driving from Rabat to Marrakech

The drive between Rabat and Marrakech is roughly 320–330 km. Allow around 3.5 to 4 hours before rest stops, city traffic and delays connected with road or railway construction.

For a straightforward city-to-city journey, renting a car solely to cover Rabat to Marrakech is not usually the best-value choice. The train removes the need to think about motorway tolls, fuel, parking and Marrakech traffic.

Driving makes more sense when the vehicle is part of a broader route, such as continuing into the Atlas Mountains, exploring rural areas, heading towards the coast, or building a flexible road trip around several destinations.

The important Marrakech parking question

If you drive, decide exactly where the vehicle will be parked before entering the busy central city or approaching the Medina. Many riads are inside pedestrian-only lanes, and driving close to the door is often not possible.

A rental car can be useful outside Marrakech, but it can become an unnecessary burden if your plan is simply to stay in Gueliz or the Medina for several nights.

For wider route-planning advice, see this guide to getting around Morocco.

Bus from Rabat to Marrakech: a workable backup

A coach can be useful when the train times do not suit your itinerary, but road travel is usually less predictable because of traffic and rest stops.

Check the route, departure point, journey time and baggage conditions directly with CTM before booking. Schedules, fares and luggage charges can change, so do not rely on an old timetable or assume that every operator serves this route directly.


Which Rabat to Marrakech transport option suits your trip?

Solo travelers: take the train

For solo travelers, the train is the clear choice for simplicity and value. Book ahead if your dates are fixed, use Rabat Ville if you are staying centrally, and take a petit taxi onward from Marrakech station.

A private transfer is difficult to justify on price when you are travelling alone unless you have a very specific comfort, timing or luggage need.

Couples: train for value, transfer for comfort

Light-travelling couples will usually find the train excellent. First class is worth considering if you want a calmer journey and more personal space.

A private transfer becomes more appealing when you have substantial luggage, would value a flexible departure or stop, or prefer to avoid navigating taxi arrangements at both stations.

Families and small groups: compare the total cost, not just ticket prices

For families, first-class train travel remains a good option when everyone is travelling reasonably light. But a private transfer is often the more comfortable choice once you add children, pushchairs, multiple bags and the effort of station transfers.

Rather than comparing one rail ticket with one transfer quote, compare the full journey: rail tickets for everyone, taxis at both ends, luggage management, and the convenience of being collected directly from your accommodation.


Do not make Marrakech a day trip from Rabat

The same applies in reverse: Marrakech to Rabat is not a normal day trip.

Even with a direct train, the combined station time, city transfers and return journey leave too little time to understand either city properly. Rabat works best as an overnight stop rather than a rushed excursion. When the itinerary permits, around two nights in Rabat gives you time for its Medina, Kasbah des Oudayas, Hassan Tower area and a more relaxed pace before Marrakech.

This combination also works well on a seven-day Morocco trip. Rabat can be a softer first stop and a useful contrast before the intensity of Marrakech. For help deciding how to use your time after arrival, see the Marrakech travel guide.


The practical choice for this route

Choose the direct train if you are travelling solo or as a couple with manageable luggage. It is generally reliable, comfortable and better value than driving this corridor.

Choose a private transfer if door-to-door ease matters more than budget, particularly for families, small groups and travelers with several large suitcases. Use the bus when it fits your schedule better than the train, and drive only when the car will be useful beyond Marrakech.

Whatever option you choose, allow realistic door-to-door time rather than treating the rail or road journey as the entire travel day.


FAQ

Is there a direct train from Rabat to Marrakech?

Yes, direct Al Atlas services normally operate between Rabat and Marrakech, so a Casablanca change is not generally necessary. Check ONCF schedules for your exact date because timetables can change.

How long is the train from Rabat to Marrakech?

Allow about four hours from station to station under the published timetable. For hotel-to-hotel planning, allow roughly five to six hours including taxis, station time and boarding, and check ONCF for temporary schedule changes.

How much is the Rabat to Marrakech train?

There is no single fixed fare. The price depends on class, ticket flexibility, availability, promotions and booking timing, so check the live ONCF booking system for your exact train.

Is first class worth it on the Rabat to Marrakech train?

First class can be worth the premium on this roughly four-hour route if you value more space and a calmer journey. It is especially worth booking ahead on busy travel days, as availability can be limited.

Can I visit Marrakech from Rabat in one day?

It is possible in the strict sense, but it is not recommended as a normal day trip. The return journey, station time and city transfers take up too much of the day. Staying overnight gives both Rabat and Marrakech the time they deserve.

Similar Posts