Discovering...
Discovering...

Rabat to Marrakech is one of Morocco's easiest long train journeys — comfortable, frequent and cheap, with no ferry, no traffic and no parking to worry about. This guide sets out every option, from through-services to a quick change at Casablanca, with real 2026 fares by class and honest journey times. For the wider network, see our Morocco driving distances matrix and the car-free rail itinerary.
Journey time
~3h30–4h (direct or via Casablanca)
Distance by rail
~330 km via Casablanca
2nd-class fare
~145–165 MAD (~$15, approx.)
1st-class fare
~215–250 MAD (~$23, approx.)
Frequency
Roughly hourly on the Casablanca spine
Rabat stations
Rabat Ville (central) & Rabat Agdal
Marrakech station
Gare de Marrakech, edge of Gueliz
Operator
ONCF (Al Atlas conventional trains)
Booking
oncf-voyages.ma, ONCF app, or station counter
Change point
Casablanca Voyageurs (cross-platform)
Yasmine El Amrani· Marrakech & Atlas Editor
Marrakech-born travel writer who has spent the last decade walking the medina’s souks and the High Atlas trails above Imlil. She covers the Red City, Berber villages and day trips into the mountains. Marrakech · 12+ years covering Morocco
Published 19 February 2026 Last updated 15 July 2026
There is no separate high-speed line to Marrakech yet, so this journey runs on ONCF's conventional Al Atlas trains down the country's busiest rail spine: Rabat to Casablanca, then Casablanca to Marrakech. Some services run straight through with no change; on others you swap trains at Casablanca Voyageurs, usually across the same platform, with a short connection. Either way the total is around three and a half to four hours, city centre to city centre.
Because the Rabat–Casablanca stretch is served by trains almost every half hour, and Casablanca–Marrakech departures are frequent too, you are never tied to a single daily train. Turn up within reason and you will find a service within the hour. That flexibility, plus the low fare and the absence of city traffic, is why most independent travellers take the train over driving on this corridor. It is one of the backbone legs of a no-car rail trip around Morocco.
The trade-off is that trains connect city centres, not doorsteps: you will still need a petit taxi at each end. From Marrakech's station it is a short, cheap ride to the medina or Gueliz; from Rabat's central station you are already in the heart of the capital.
The choice comes down to a direct through-train versus a change at Casablanca. Direct services save you the bother of switching, but connecting services often depart sooner or offer a better seat, so it pays to check both when you book. Times below are typical rather than a fixed timetable — ONCF adjusts departures seasonally, so confirm on the app or at oncf-voyages.ma on the day.
Whichever you pick, arrive ten to fifteen minutes early. Moroccan trains are punctual on this line, platforms are announced close to departure, and first-class coaches are usually at the far end of the platform.
| Option | Route | Duration | Frequency | Notes |
|---|---|---|---|---|
| Direct Al Atlas | Rabat – Casablanca – Marrakech (no change) | ~3h30–4h | Several daily | Simplest; book ahead for a seat |
| Connection at Casablanca | Rabat to Casa Voyageurs, change to Marrakech train | ~3h45–4h15 | Roughly hourly | Often a shorter overall wait; cross-platform change |
| Al Boraq + Al Atlas | Rabat Agdal to Casa (high-speed), then Marrakech | ~3h30 | Frequent | Fastest to Casablanca, then conventional onward |
| Early / late services | First morning and evening departures | ~3h45 | Dawn and evening | Best availability; evening trains busiest Fri/Sun |
Fares on this route are modest and fixed by class rather than by dynamic pricing, so you pay much the same whether you book weeks ahead or on the day — though weekend seats can simply sell out. Second class is comfortable, air-conditioned and perfectly fine for the journey; first class buys a guaranteed reserved seat, a bit more legroom and a calmer carriage, which is worth the small premium on a busy Friday.
As a rough guide, second class costs around 145–165 MAD and first class around 215–250 MAD one way (roughly $15 and $23 at mid-2026 rates, approximate). Children and under-26 cards attract discounts. The table shows what each class buys you.
| Class | Fare (approx.) | In USD (approx.) | What you get |
|---|---|---|---|
| 2nd class | ~145–165 MAD | ~$15 | A/C carriage, unreserved or reserved seat, fine for the trip |
| 1st class | ~215–250 MAD | ~$23 | Guaranteed reserved seat, more legroom, quieter coach |
| Under-26 / child | Reduced | — | Discounts with the relevant card or age proof |
The train is the default for good reason, but it is not the only way to cover Rabat to Marrakech. A CTM or Supratours bus is cheap and runs the motorway, though it is slower and drops you at a bus station rather than the centre. A private driver costs far more but goes door to door and can pause at Casablanca or a roadside stop. Grand taxis do not sensibly serve this full distance in one hop — they work city to city on shorter legs — so you would relay through Casablanca, which is more hassle than it is worth.
The comparison below weighs the realistic choices. For most visitors the maths is simple: two people pay around 300–500 MAD total by train and arrive relaxed in the centre, versus far more for a private car whose only real advantage is stops and doorstep pickup.
| Mode | Duration | Approx. cost | Frequency | Best for |
|---|---|---|---|---|
| Train (Al Atlas) | ~3h30–4h | 145–250 MAD per person | Roughly hourly | Value, comfort, city-centre arrival |
| CTM / Supratours bus | ~4h30–5h | ~120–160 MAD per person | Several daily | Tight budgets; motorway all the way |
| Private driver | ~3h30–4h | ~1,200–1,800 MAD per car | On demand | Door to door, stops en route, groups |
| Grand taxi (relayed) | ~4h+ | ~150–200 MAD per seat, in stages | Frequent short legs | Not recommended for the full run |
Rabat has two stations. Rabat Ville sits in the centre near the medina and Avenue Mohammed V — most central-city travellers use it. Rabat Agdal, a little south, is the modern Al Boraq hub and is handy if you are starting from the Agdal district or connecting from a high-speed train. Both are on the same line to Casablanca, so either works; pick whichever is closer to where you are staying, and check which one your specific train uses.
Marrakech has a single main station, the handsome Gare de Marrakech on the edge of Gueliz, about a ten-minute petit taxi ride from Jemaa el-Fnaa and the medina riads. There is a taxi rank outside; insist on the meter or agree the fare first, as station ranks are where overcharging is most common. For onward budgeting, our Rabat prices guide covers local taxi and tram costs at the capital end.
The beauty of this route is how well it plugs into the rest of the network. From Rabat, the same station puts you on the high-speed Al Boraq north to Tangier in around ninety minutes, or on Al Atlas trains east to Meknes and Fes. The capital's tram links the two central stations to the medina and Agdal cheaply. Casablanca, the natural change point, also throws off connections to El Jadida and the airport line.
From Marrakech, the station is the launchpad for the south and the coast. Supratours coaches to Essaouira depart from beside the station; grand taxis and tour minibuses head into the Atlas foothills; and the airport is a short ride away. If Marrakech is your gateway to the desert, this is where a rail trip hands over to a road one — see the Ouarzazate to Merzouga guide for the onward desert corridor, and the Casablanca–Rabat corridor guide for the busy hop at the northern end.
Yes — eventually. The Al Boraq high-speed line that already links Tangier, Kenitra, Rabat and Casablanca is being extended south toward Marrakech, a flagship project tied to Morocco's 2030 World Cup preparations. When it opens, the Rabat–Marrakech journey should fall to well under two hours, transforming a pleasant half-day trip into a genuine commuter hop. As of mid-2026 the extension is under construction and scheduled to enter service before 2030, though exact opening dates have not been confirmed and could shift.
Until then, the conventional Al Atlas trains described here are the way, and they do the job well. When the high-speed extension does open, expect fares to rise for the fastest services while the classic trains likely continue at today's lower prices — the same two-tier pattern already seen on the Tangier–Casablanca axis. For now, book an Al Atlas seat, sit back, and let the countryside roll past.
About three and a half to four hours, whether you take a direct through-train or change at Casablanca Voyageurs. The direct services save you a switch, but connecting trains sometimes leave sooner, so check both. Add a short petit-taxi ride at each end, since the stations sit in the city centres rather than at your accommodation.
Yes, several Al Atlas services run straight through Rabat–Casablanca–Marrakech with no change. On other departures you switch trains at Casablanca Voyageurs, usually across the same platform with a short wait. Both options take roughly the same total time, so pick whichever leaves at a convenient hour when you book.
Around 145–165 MAD in second class and 215–250 MAD in first class one way (roughly $15 and $23, approximate mid-2026). Fares are set by class rather than demand, so booking early does not save money — but it does secure a first-class seat on busy Friday and Sunday evening trains.
For weekday and off-peak travel you can buy at the station on the day. For Friday evenings, Sunday returns and holidays, book a day or two ahead online at oncf-voyages.ma or on the ONCF app, especially if you want first class — those seats sell out while second class can end up standing-room on the busiest departures.
Either Rabat Ville, in the city centre near the medina, or Rabat Agdal, the newer high-speed hub a little south. Both are on the line to Casablanca, so pick whichever is closer to your accommodation and check which one your booked train departs from. Rabat Ville suits most central-city travellers.
The train wins on cost, comfort and stress for one or two people — you arrive in the centre in under four hours for a modest fare. A private driver costs far more but goes door to door and can stop at Casablanca or a roadside break, which suits families, groups or anyone wanting to sightsee en route rather than rush straight through.
Yes. CTM and Supratours run comfortable motorway coaches for around 120–160 MAD, a little cheaper than the train but slower, at roughly four and a half to five hours, and dropping you at a bus station rather than the centre. The train is usually the better all-round choice, but the bus is a solid budget backup if trains are full.
It is expected to. The Al Boraq high-speed line, which already links Rabat with Tangier and Casablanca, is being extended toward Marrakech and, when it opens, should bring the journey down to under two hours. As of mid-2026 the extension is under construction and scheduled before 2030, though the exact opening date has not been confirmed.
Plan it with a local expert
Crafting extraordinary journeys through Morocco's timeless landscapes. 100% private journeys, handcrafted around you.
from $2,011Sahara Desert Luxury Expedition
from $2,054Essential Morocco: Imperial Cities Circuit
from $5,978Sahara to Sea: Morocco Complete
Practical Guides
The frequent Casablanca-Rabat hop by train and grand taxi, with durations, fares and airport connections.
Read guidePractical Guides
How to cover the long Tangier-Marrakech journey by train, bus, flight or driver, with times, costs and break points.
Read guidePractical Guides
A rail-only Morocco itinerary built on ONCF and Al Boraq legs, with train times, fares and what's reachable car-free.
Read guidePractical Guides
A master reference of realistic driving distances and times between Morocco's main hubs, with where to break long legs.
Read guidePractical Guides
A 2026 price guide to the capital covering meals, the tram, train fares, attractions and daily budgets.
Read guidePractical Guides
The old Mercedes shared taxis explained — how to find them, what a seat costs, negotiating and when a grand taxi beats the bus.
Read guide