Tangier to Marrakech by Train: The Complete ONCF Guide

Al Boraq high-speed train at Tangier station ready for the Tangier to Marrakech by train journey

Morocco's two most loved cities sit at opposite ends of the country, joined by rail in a single day. Going tangier to marrakech by train takes you from the Strait of Gibraltar to the foot of the Atlas Mountains without a single airport queue, and the journey itself is half the pleasure. This guide covers both legs, the Casablanca change, real 2026 fares and the booking traps to avoid.

There is no direct train. Every journey pairs Al Boraq from Tangier to Casablanca with a classic Al Atlas train onward to Marrakech, and the change at Casa Voyageurs is the part most guides rush past. Done well, tangier to marrakech by train takes about five and a half hours of moving time, plus a relaxed connection. Done badly, it means a missed train and a long wait — read the Casablanca section before booking.

Last checked: November 2026

In this guide

Why Tangier to Marrakech by Train Beats Flying

Flying looks faster until you count the whole trip. Tangier airport sits outside the city, Marrakech airport needs a taxi into town, and both add check-in, security and waiting. By contrast, tangier to marrakech by train runs city centre to city centre: Tanger Ville is a short taxi ride from the medina, and Marrakech station stands a ten-minute walk from Guéliz. You arrive relaxed instead of wrung out.

The train also wins on comfort and scenery: Al Boraq glides at up to 320 km/h past the Atlantic coast and the green hills of the north, then Al Atlas crosses the Chaouia plains with the Atlas Mountains ahead. Our Morocco travel guide for first-time visitors covers the classic north-to-south route, but the short version is simple: tangier to marrakech by train is the calmest way to cross the country, and the views from the window beat any airport lounge.

Driving is the only real rival, suiting groups who want stops along the way. Solo travellers pay more for fuel, tolls and a rental car than for two train tickets, and arrive tired after five hours on the motorway.

The Route at a Glance

The whole trip has two legs and one change, inside a single morning or afternoon. Here is a typical tangier to marrakech by train day, with times from the ONCF timetable in force since September 2026. The official Visit Morocco site has more on both cities if you are still planning stops.

LegTrainFrom → ToTimeFrequency
1Al BoraqTanger Ville → Casa Voyageurs2h17Roughly hourly, 06:00–21:00
Change—Casa Voyageurs45–60 minSame station
2Al AtlasCasa Voyageurs → Marrakech2h39–3h20Roughly hourly, 06:00–21:00
Total—Tangier → Marrakech~5h30–6h15—

Leg One: Al Boraq from Tangier to Casablanca

Your day starts at Tanger Ville, the modern station south of the centre. Al Boraq, Africa's first high-speed train, has run this route since November 2018: wide seats, air conditioning, power sockets and a smooth ride at up to 320 km/h between Tangier and Kenitra. The first stretch of tangier to marrakech by train is the fast one, so enjoy it.

The train stops briefly at Kenitra and Rabat Agdal — a minute or two each, with no need to change seats. Keep your ticket handy for onboard inspectors: every Al Boraq ticket includes a reserved seat, even in second class. Our Tangier travel guide covers the medina, the kasbah and where to stay near the station.

Trains leave roughly hourly from about 06:00 to 21:00, with a gap around 13:00 on some days. The earliest departures on tangier to marrakech by train suit travellers who want a full afternoon in Marrakech; the 09:00 or 10:00 trains suit everyone else.

The Casablanca Change on Your Tangier to Marrakech by Train Journey

Here is the part other guides gloss over. Both trains use Casa Voyageurs, the big modern station in central Casablanca, so the change is a walk across the concourse, not a taxi across town. When your Al Boraq train pulls in, follow signs to the departure boards, find your Marrakech train, and walk to its platform. The whole move takes ten minutes at a stroll, and tangier to marrakech by train only feels complicated when you do not know this in advance.

Do not confuse Casa Voyageurs with Casa Port, the smaller station near the old medina, which serves the airport shuttle and the Rabat shuttles — not the Marrakech trains. If a booking site or taxi driver sends you to Casa Port, you are in the wrong place. Every Marrakech departure on tangier to marrakech by train leaves from Casa Voyageurs, and that single fact saves more missed trains than any other tip in this guide.

Allow 45 to 60 minutes between trains. The official minimum is shorter, but a late arrival plus a platform hunt can eat 20 minutes fast. Use the wait well: cafés, a pharmacy, luggage storage, clean toilets, and a first-class lounge for first-class ticket holders.

Passengers changing trains at Casa Voyageurs station on the Tangier to Marrakech by train route

Leg Two: Al Atlas from Casablanca to Marrakech

The second leg is slower and more Moroccan. Al Atlas is the classic intercity service: comfortable, air-conditioned and unhurried, running south past Casablanca's industrial edge, across the flat Chaouia plains and into the red earth around Marrakech. Some services stop at Ben Guerir and Settat; others run with fewer stops, so the time varies from 2h39 to 3h20. Either way, the second half of tangier to marrakech by train is where the landscape finally turns to desert and palms.

There is no food cart on this line in 2026, so buy water and snacks at Casa Voyageurs before boarding. Seats are reserved in both classes, the windows are large, and the phone signal holds most of the way. As the train slows for Marrakech, the Koutoubia minaret appears on the right, and you will know the journey is nearly over. Our Marrakech travel guide picks up exactly where tangier to marrakech by train stops.

Marrakech station is modern, with a taxi rank, a bus stop and car rental desks outside. The medina is a 15-minute taxi ride away; Guéliz is a ten-minute walk.

Train arriving in Marrakech with the Koutoubia minaret in view at the end of the Tangier to Marrakech by train trip

How Much Does It Cost? Fares by Class

ONCF uses dynamic pricing, so there is no single fixed fare — the same seat costs less weeks ahead and more on the morning of travel. The ranges below are real fares observed on the ONCF site and in 2026 traveller reports, checked November 2026. For the full tangier to marrakech by train journey, budget the top of the range if booking late, and the bottom if booked a week or more ahead.

The cheapest fares have names: Yalla Al Boraq from 89 MAD in second and 129 MAD in first, and Yalla Al Atlas from 49 MAD in second. Yalla seats for tangier to marrakech by train are limited, must be bought at least seven days ahead, and cannot be changed or refunded. Other fares are standard and rise as the train fills, so the gap between early and late booking can easily double your cost.

LegClassFare range (MAD)Approx. USD
Tangier–Casablanca (Al Boraq)2nd class89–270$9–$27
Tangier–Casablanca (Al Boraq)1st class129–350$13–$35
Casablanca–Marrakech (Al Atlas)2nd class49–139$5–$14
Casablanca–Marrakech (Al Atlas)1st class100–200$10–$20
Total Tangier–Marrakech2nd class138–409$14–$41
Total Tangier–Marrakech1st class229–550$23–$55

First Class vs Second Class: Is the Upgrade Worth It?

On Al Boraq, first class is often only about 100 MAD ($10) more than second class on the same train, and that is the best value upgrade on the whole route. You get a wider seat, a quieter car, a guaranteed seat on busy days and lounge access at Tanger Ville and Casa Voyageurs. For a five-hour day, tangier to marrakech by train in first class turns a long journey into a comfortable one.

Second class is comfortable for most travellers: decent seats, working air conditioning and a reserved seat on every ticket. Its limit is crowding. On Friday afternoons, Sunday evenings and holiday weekends, second class fills up and gets noisy. If you travel at those times, first class on tangier to marrakech by train is worth the money; on a quiet Tuesday morning, save it for dinner in Marrakech.

On the Al Atlas leg the difference is smaller: first class means a reserved seat in a calmer car, while second class can feel busy near Casablanca. The upgrade costs roughly 50–60 MAD ($5–$6) on this leg, so many travellers book first class for both legs.

How to Book: ONCF Website, App and Station

Book at oncf-voyages.ma, the official ONCF site, or on the ONCF Voyages app, which takes international cards. Tickets open up to three months ahead, and you can choose your seat free on both Al Boraq and Al Atlas. Buying online gives you an e-ticket on your phone, so there is no paper to lose, and the whole tangier to marrakech by train booking takes about ten minutes once you know the two legs.

You can also buy at station counters, ticket machines, or partner agencies such as Cash Plus. Same-day tickets are usually available, but Al Boraq prices rise as seats sell, and popular trains sell out — especially on Fridays and before holidays. If your date is fixed, book at least a week ahead for the Yalla fares; if your plans are flexible, buy on the day and accept the higher price. Either way, tangier to marrakech by train rewards the traveller who books early.

One warning: the ONCF site sometimes struggles with foreign cards, and the English version can be patchy. If a payment fails, try the app, try a different card, or buy at the station. Avoid unofficial resellers who charge a markup for the same ticket.

The One-Ticket Trap: Book Two Legs or One?

Here is the trap. The ONCF site will sell you Tangier to Marrakech as a single journey, but it is really two tickets stitched together, and the connection can be as short as 15 minutes. If your Al Boraq train runs late, that connection evaporates, and a missed connection is your problem, not ONCF's. Booking tangier to marrakech by train as one click feels easy, but it hides the risk.

Book the two legs separately and choose your own connection time. Pick an Al Boraq arrival that leaves 45 to 60 minutes at Casa Voyageurs before the Marrakech train, turning a gamble into a relaxed coffee break. The price is the same either way — you pay the two leg fares, not a through-ticket premium — so separate booking costs nothing and buys control. This is the single most useful tip for tangier to marrakech by train, and it is the one most travellers only learn after missing a train.

If you miss a connection, go straight to the ticket office at Casa Voyageurs. Staff can usually move you to the next Marrakech train, though a Yalla fare may not transfer and a new ticket may be needed. Stay polite, show both tickets, and expect a wait rather than a refund.

Luggage, Seats and Onboard Life

There is no weight limit on Moroccan trains, and nobody weighs your bag. You carry your own luggage on board, store it on the racks at the end of the car or above your seat, and keep valuables close. A large suitcase plus a day pack is normal; a surfboard or bicycle needs a different plan. For a full day of tangier to marrakech by train, pack light enough to carry everything across Casa Voyageurs in one trip.

Choose your seat when booking: forward-facing window seats on the right give the best views southbound. Bring headphones, water and snacks, and download films or podcasts before leaving Tangier — the Wi-Fi is unreliable and the signal drops north of Kenitra.

What If Something Goes Wrong?

Delays happen, mostly because of engineering works for the new high-speed line to Marrakech, due to open in 2029. The September 2026 timetable already reflects the works, so most trains run to time, but 15- to 30-minute delays are still possible. Build your 45- to 60-minute connection around that fact, and tangier to marrakech by train stays stress-free even if the first leg runs late.

If a train is cancelled, ONCF usually moves passengers to the next service. Keep your ticket, ask station staff, and do not panic-buy a bus ticket until you know the next train time. For the last train of the day, have a backup plan: a hotel near Casa Voyageurs beats a midnight taxi to Marrakech.

Sample Timetable: A Perfect Travel Day

Here is a day that works: the 08:00 Al Boraq from Tanger Ville, arriving at Casa Voyageurs at about 10:17. Take your time over coffee and a snack, checking the departure board. Catch the 11:00 Al Atlas to Marrakech, arriving about 13:55, in time for lunch in the medina and an afternoon in the souks. This unhurried version of tangier to marrakech by train leaves the whole afternoon free, which is exactly how a travel day should feel.

Prefer a lie-in? The 10:00 Al Boraq reaches Casablanca at about 12:17, and a 13:00 Al Atlas puts you in Marrakech by about 16:00, still in time for sunset at Jemaa el-Fnaa. If you are building a longer trip around this journey, our 7-day Morocco itinerary shows how the train fits into a full week, and our best time to visit Morocco guide helps you pick the season.

Tangier to Marrakech by Train vs the Alternatives

The train is not the only way south, but it is the best balance of price, comfort and reliability. A flight saves an hour at best once airport time is counted, at two to three times the price. A CTM bus takes seven to eight hours and costs about the same as a second-class ticket, without the legroom. Driving takes five hours and gives freedom, but tolls, fuel and rental cost more than two first-class tickets. Compared with all of them, tangier to marrakech by train is the option most travellers would choose again.

OptionTimeCost per personBest for
Train (Al Boraq + Al Atlas)~5h30–6h15138–409 MAD ($14–$41)Most travellers
Flight via Casablanca~4h30 incl. airports400–900 MAD ($40–$90)Tight schedules
CTM bus7–8h~150–200 MAD ($15–$20)Tight budgets
Rental car (A3 motorway)~5h350–550 MAD ($35–$55) all-inGroups, stops

If you do drive, the A3 motorway is straightforward and well maintained; our driving in Morocco guide covers rental tips, tolls and the rules that catch visitors out.

Frequently Asked Questions

How long does the Tangier to Marrakech train take?

About five and a half to six and a quarter hours door to door: 2h17 on Al Boraq, a 45- to 60-minute change, then 2h39 to 3h20 on Al Atlas. The moving time alone is just over five hours.

How much is the train from Tangier to Marrakech?

Second class costs roughly 138–409 MAD ($14–$41) for both legs; first class roughly 229–550 MAD ($23–$55). The cheapest Yalla fares — 89 MAD for Al Boraq and 49 MAD for Al Atlas — need booking at least seven days ahead. Prices are dynamic, so book early.

Do I need to change trains in Casablanca?

Yes. There is no direct train yet — the high-speed extension is under construction, due to open in 2029. You change at Casa Voyageurs, where both trains stop. Allow 45 to 60 minutes.

Can I buy Tangier to Marrakech train tickets on the day?

Yes, at the station or on the ONCF site and app, but Al Boraq fares rise as seats sell and popular trains sell out. Same-day tickets are usually available in both classes, but first class costs the most.

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

Usually yes on Al Boraq, where the upgrade is often only about 100 MAD ($10) for a wider seat, a quieter car and lounge access. On the Al Atlas leg the upgrade is smaller and cheaper, so many travellers book first class for the whole journey.

Which station in Casablanca do Marrakech trains use?

Casa Voyageurs, the main station. Do not go to Casa Port — it serves the airport shuttle and Rabat shuttles, not Marrakech. All Marrakech trains leave from there.

Conclusion: The Train Is the Journey

Morocco's north-to-south railway is one of the great train journeys still possible in a single day, costing less than a night in a Marrakech riad. Book the two legs separately, give yourself an hour at Casa Voyageurs, and take first class on Al Boraq if the price is close. Do that, and tangier to marrakech by train becomes the highlight of the trip, not just the way you got there.

1 thought on “Tangier to Marrakech by Train: The Complete ONCF Guide”

Leave a Comment