Skip to content
The Better Trip

Destinations

An Al Boraq high speed train waiting at the platform of Tanger Ville station in the evening light

TrainWinterSpringAutumn

Tangier to Marrakech by train, on Africa's first high-speed line

From the Strait of Gibraltar to the red city in an afternoon, the first 50 minutes at 320 km/h.

The short answer

The fastest trains from Tangier to Marrakech take 5 hours 37 minutes: Al Boraq from Tanger Ville to Casa Voyageurs in 2 hours 17 minutes, a 26-minute change, then an Al Atlas train to Marrakech in 2 hours 54 minutes. ONCF's timetable for November and December 2026 has 12 or 13 of these connections a day, the first at 06:00 or 07:00 and the last at 19:00. ONCF sells both trains on one ticket, from MAD 138 (about €13) in second class for 9 December 2026, read on 31 October 2026. There is no direct train and no night train.

Board a double-deck Al Boraq at Tanger Ville and 50 minutes later you are in Kénitra, having covered the run from the Strait of Gibraltar down the Atlantic side of Morocco at up to 320 km/h. The train crosses the river into Rabat and runs on to Casablanca, where an Al Atlas intercity takes you south across the plains to Marrakech. One ticket, one change, the length of the country before dinner.

Morocco

Journey time
5 h 37 min, one change
Top speed
320 km/h, Tangier to Kénitra
Fast connections a day
12 or 13 (Nov to Dec 2026)
Fare from
MAD 138 (about €13)
Tangier to Casablanca
2 h 17 min on Al Boraq
Season
All year, best out of summer

Why this is one of the great journeys

Few train rides cross a whole country and a whole era in an afternoon. Until November 2018 the train from Tangier to Casablanca took 4 hours 45 minutes. On 15 November that year King Mohammed VI and President Emmanuel Macron opened Africa's first high-speed line, and the time fell to 2 hours 10 minutes, at a commercial speed of 320 km/h. In 2024 Al Boraq carried 5.5 million passengers.

The new line runs south from Tangier through the farmland and low hills behind the Atlantic coast. ONCF built 200 km of new double track between Tangier and Kénitra, with 12 viaducts carrying it across the river valleys, among them the Oued El Hachef and the Loukkos near Larache. The trains are Alstom double-deckers, and ONCF lets you choose the upper or the lower deck when you book.

At Kénitra the high-speed track ends and the journey changes character. The train slows onto the classic line, crosses the Bou Regreg between Salé and Rabat, a capital UNESCO listed in 2012 as both a modern capital and a historic city, and reaches Casablanca. From there an Al Atlas intercity heads south across the plains of the Chaouia, through Settat and Ben Guerir, and in winter the snow of the High Atlas comes up ahead before you pull into Marrakech.

It will not stay like this for long. Work began on 24 April 2025 to carry the high-speed line 430 km on from Kénitra to Marrakech, with Tangier to Marrakech promised in 2 hours 40 minutes.

Along the way

  1. Tangier
  2. minute 0

    Leaving Tanger Ville

    Al Boraq leaves from Tanger Ville, the city's main station near the beach on the Bay of Tangier, 4.5 km by road from the city port where the ferries from Tarifa come in. Tangier is the end of the line: the next stop south is Kénitra, 50 minutes away.

  3. in the first 15 minutes, before Asilah

    The El Hachef valley

    Soon after leaving Tangier the line crosses the valley of the Oued El Hachef on a long viaduct, at full speed. It is one of the 12 viaducts ONCF built on the 200 km of new line to Kénitra.

  4. a little before halfway to Kénitra

    The Loukkos valley at Larache

    Another viaduct takes the line across the wide, flat valley of the Loukkos river inland from Larache, with the river winding west towards the sea on the right.

  5. Tanger Ville to Kénitra, 50 minutes

    320 km/h, then the classic line

    Africa's first high-speed line: on the 07:00 from Tangier the train is in Kénitra at 07:50. Beyond Kénitra Al Boraq continues on the conventional line, and the pace drops.

  6. after Salé, a few minutes before Rabat Agdal

    Across the Bou Regreg into Rabat

    The train crosses the river from the Salé side and runs west along the Rabat bank. To the right, downriver, lies the historic Rabat that UNESCO inscribed in 2012: the Hassan Mosque, begun in 1184, and the Kasbah on its height above the river mouth. Al Boraq stops at Rabat Agdal, 1 hour 22 minutes from Tangier.

  7. 2 hours 17 minutes out

    The change at Casa Voyageurs

    Casablanca's main station is the end of the line for Al Boraq and the start of your Al Atlas train south. The timetable gives you 26 minutes: the 07:00 from Tangier arrives at 09:17 and the Marrakech train leaves at 09:43.

  8. Casablanca to Marrakech, 2 hours 54 minutes

    The plains south, and the Atlas ahead

    The Al Atlas train calls at Berrechid, Settat and Ben Guerir across the open farmland of the Chaouia plains and the dry country beyond. On clear winter days the High Atlas rises white ahead of the train on the final approach, the range that holds Djebel Toubkal, at 4,167 m the highest peak in North Africa.

  9. Marrakech

Which side to sit

Southbound, sit on the right as far as Casablanca, then on the left to Marrakech. The right side looks west, towards the coast, and as the train crosses the Bou Regreg into Rabat it looks downriver to the old city and the estuary. From Casablanca the High Atlas lies to the south and east of Marrakech, so it comes up on the left and ahead on the approach. On Al Boraq, ask for the upper deck when you book: ONCF's booking lets you choose upper or lower deck, window or aisle, and in first class a single seat. Coming north, the Rabat view is on the left.

Ways to do it

When to go

Tickets: one through ticket, three fare types

How do you buy Tangier to Marrakech train tickets, and how much are they?

ONCF, Morocco's national railway, sells the whole journey on one ticket: search Tanger Ville to Marrakech on oncf-voyages.ma or in the ONCF Voyages app, and the Al Boraq and Al Atlas connections come up together, with one price. You can also buy at the station ticket office or from ticket machines, which take bank cards. Sales open up to 90 days ahead.

Every train comes in three fare types. Non-flexible is the cheapest and cannot be changed or refunded. Semi-flexible can be exchanged once before departure and refunded at 50%. Flexible can be exchanged five times and refunded in full up to the day before, or at 80% on the day. Prices move with demand: for 9 December 2026, read on 31 October, a second-class through ticket cost MAD 138 to 214 non-flexible, MAD 260 semi-flexible and MAD 360 flexible, and first class MAD 218 to 288, MAD 450 and MAD 550. Two days before travel, only the flexible fare was left. The cheapest non-flexible seats are sold as Yalla fares.

Online, ONCF asks at checkout whether you are paying with a Moroccan or a foreign bank card, and adds a service fee when you pay with a foreign card; the amount is shown before you pay. Your e-ticket arrives by email and in the app, and you can show it as a PDF on your phone or print it at full size. Carry your passport: inspectors may ask the person named on the e-ticket for identification, and a photo or copy of a ticket is not accepted.

Second class through ticket
MAD 138 non-flexible, MAD 260 semi-flexible, MAD 360 flexible (9 December 2026)
First class through ticket
MAD 218 non-flexible, MAD 450 semi-flexible, MAD 550 flexible (9 December 2026)
In euros
€1 = MAD 10.98 (Bank Al-Maghrib, 30 October 2026): MAD 138 is about €13, MAD 360 about €33
Sales open
up to 90 days ahead
Foreign bank cards online
a service fee is added
On board without a ticket
highest fare for the journey plus up to 20%

First or second class

Is first class on Al Boraq worth it?

Both classes travel at the same speed on the same double-deck trains. First class offers more seat layouts: a single seat by the window, a pair facing each other, a pair side by side, or a table of four. Second class has pairs side by side and groups of four facing each other. Food and drink are sold on board. On the Al Atlas leg to Marrakech, the class you booked carries through.

The price gap is smallest on the cheapest fares: on 9 December 2026 a non-flexible first-class through ticket was MAD 218 against MAD 138 in second, about €7 more for over five hours. On the flexible fare the difference is MAD 190. For a long day with luggage, first class is good value; for a short hop to Rabat or Casablanca, second is fine.

Seat choice when booking
upper or lower deck, window or aisle; single seat in first class
First class premium, non-flexible
MAD 80 (9 December 2026)
Trains
Alstom double-deck high-speed sets, 12 bought for the line
Children
under 4 free on a lap; 4 to 15 on the Child fare

The change at Casa Voyageurs, and luggage

Is there a direct train from Tangier to Marrakech?

No. Every Tangier to Marrakech journey in ONCF's timetable involves one change. On the fast route you change at Casablanca Voyageurs, Casablanca's main station and the southern end of the Al Boraq line, with 26 minutes in the timetable: Al Boraq arrives at 17 minutes past the hour, the Marrakech train leaves at 43 minutes past. Do not get off at Casa Port, the station by the harbour; the Marrakech trains leave from Casa Voyageurs. Both trains are on your ticket, and if a train is cancelled or delayed by an hour or more before departure ONCF lets you exchange the ticket free for another journey within a month or take a full refund. If Al Boraq arrives an hour or more late, you can claim a free ticket for the same route at the arrival station.

Luggage is free and carried by you. Each passenger may bring cases, bags and backpacks up to 1.2 m by 0.6 m by 0.4 m, plus one extra item such as a folding pushchair, skis, a folded bicycle in a bag or a folding wheelchair. Electric scooters are banned on Al Boraq and Al Atlas trains, with a MAD 300 fine. Assistance for passengers with reduced mobility is free at stations and should be booked 48 hours ahead on 2255.

Change
Casa Voyageurs, 26 minutes
Luggage
free; each piece up to 1.2 x 0.6 x 0.4 m, plus one extra item
Scooters
not allowed on Al Boraq or Al Atlas
Marrakech station to Jemaa el-Fna
about 3 km
ONCF customer line
2255 (in Morocco)

The night train, and the high-speed line to Marrakech

Is there a night train from Tangier to Marrakech, and when will the high-speed line reach Marrakech?

There is no night train from Tangier to Marrakech in ONCF's timetable for November and December 2026: no sleeper or couchette runs on the route, and the last train from Tangier that reaches Marrakech the same night is the 19:00 Al Boraq, arriving at 00:37. Northbound, the last connection leaves Marrakech at 15:35 and reaches Tangier at 21:17.

The high-speed line is coming south. King Mohammed VI launched work on the 430 km Kénitra to Marrakech line on 24 April 2025, at a cost of MAD 53 billion without the trains. The government's figures promise Tangier to Rabat in 1 hour, Tangier to Casablanca in 1 hour 40 minutes and Tangier to Marrakech in 2 hours 40 minutes, more than two hours faster than today. No opening date has been published on ONCF's site. Until then, works around Casablanca, planned from September 2025 to the end of 2027, may change some train times, so check your train in the ONCF Voyages app before you travel.

Night train
none (timetable November and December 2026)
Last train from Tangier
19:00, arriving 00:37
New line
Kénitra to Marrakech, 430 km, work started 24 April 2025
Promised time
Tangier to Marrakech in 2 hours 40 minutes

Worth knowing before you go

Where to stay at either end

The train ends at Marrakech station, about 3 km from Jemaa el-Fna, the square at the heart of the medina.

The journey in pictures

Al Boraq train 1208 at the platform in Tangier under a clear blue sky
The onboard screen of Al Boraq showing a speed of 312 km/h on the high speed line from Tangier
Two trains passing on the arched railway bridge across the Bou Regreg between Salé and Rabat
Red first class seats in a carriage of the Al Boraq train
The white lattice façade and palm lined forecourt of Kénitra station on the Al Boraq line
The twin towered entrance of Tanger Ville railway station in Tangier

Questions people ask

Good questions about Tangier to Marrakech

How long is the train from Tangier to Marrakech?

The fastest journeys take 5 hours 37 minutes: 2 hours 17 minutes on Al Boraq from Tanger Ville to Casa Voyageurs, a 26-minute change, and 2 hours 54 minutes on an Al Atlas intercity to Marrakech. In ONCF's November and December 2026 timetable there are 12 or 13 such connections a day, the first at 06:00 or 07:00 and the last at 19:00. The ordinary Al Atlas trains via Kénitra or Sidi Kacem take 8 hours 52 minutes to 9 hours 57 minutes, with one change.

How much is the train from Tangier to Marrakech?

It depends on the fare type and how early you book. For 9 December 2026, read on 31 October, a second-class through ticket on Al Boraq and Al Atlas cost from MAD 138 (about €13) non-flexible, MAD 260 semi-flexible and MAD 360 flexible; first class from MAD 218, MAD 450 and MAD 550. Close to the travel date only the flexible fare may be left. Paying online with a foreign card adds a service fee, shown before you pay.

Does Al Boraq go to Marrakech?

Not yet. Al Boraq runs from Tangier to Casablanca, via Kénitra and Rabat Agdal, and ends at Casa Voyageurs. You change there to an Al Atlas train for Marrakech, and ONCF sells both on one ticket. Work on the high-speed extension from Kénitra to Marrakech began on 24 April 2025; when it opens, the government promises Tangier to Marrakech in 2 hours 40 minutes, more than two hours faster than today.

How long is the train from Casablanca to Marrakech, and how often does it run?

The Al Atlas trains from Casa Voyageurs to Marrakech take 2 hours 54 minutes, with stops at Berrechid, Settat and Ben Guerir. In November and December 2026 they leave about every hour at 43 minutes past, from 08:43 or 09:43 until 21:43, plus an early train at 06:36. Second class was from MAD 49 non-flexible, MAD 95 semi-flexible and MAD 145 flexible for 9 December 2026. Leave from Casa Voyageurs, not Casa Port.

Is there a night train from Tangier to Marrakech?

Not in ONCF's timetable for November and December 2026: there are no sleeper or couchette trains on the route, and every journey runs by day or evening. The last train from Tangier that reaches Marrakech the same day is the 19:00 Al Boraq, which arrives at 00:37 after the change in Casablanca. Northbound, the last through connection leaves Marrakech at 15:35 and reaches Tangier at 21:17.

Can foreigners book ONCF train tickets online?

Yes. On oncf-voyages.ma or the ONCF Voyages app you choose a Moroccan or a foreign bank card at checkout, and a service fee is added for a foreign card, shown before you pay. The e-ticket comes by email and in the app; show it as a PDF on your phone or print it at full size, and carry your passport, which inspectors may ask to see. Station ticket offices also take cash and cards.

Which side of the train should I sit on from Tangier to Marrakech?

Sit on the right on Al Boraq, the west side, for the Atlantic side of the country and the view downriver as you cross the Bou Regreg into Rabat. After the change in Casablanca, sit on the left: on clear winter days the snow of the High Atlas appears to the left and ahead on the approach to Marrakech. On Al Boraq, ask for the upper deck when you book.

Tangier to Marrakech

From the Strait of Gibraltar to the red city in an afternoon, the first 50 minutes at 320 km/h.

Tangier → Marrakech

We may earn a commission when you book through Omio. It never changes what we write. · Last checked: October 2026

More train journeys

All the train journeys

Image credits: NicholasNCE (CC BY-SA 4.0) · إيان (CC BY-SA 4.0) · SpreeTom (CC BY-SA 4.0) · Pline (CC BY-SA 3.0) · David Scheibler / Zugreiseblog.de (CC BY-SA 4.0) · Bertrand SOUBEYRAND (CC BY-SA 4.0) · mustapha_ennaimi (CC BY 2.0)

Tangier → Marrakech

Book this journey

Check times and prices