Skip to content
Friday, 4 December 202604:35:59 Follow us
Get your free PDF Morocco guide
Home / Guides / ONCF Routes and Prices: Main Train Lines in Morocco

ONCF Routes and Prices: Main Train Lines in Morocco

Travel guidePublished Last checked 8 min read
Intercity train at a Moroccan station platform with a few travellers carrying suitcases

ONCF routes and prices are easier to read once you see the network as one spine: Tangier, Rabat, Casablanca, then branches to Marrakech and Fes. This guide lists the main lines, the journey times we read on the booking site, and example fares in dirhams (MAD) with a rough euro figure. For single-route detail, see the Casablanca to Marrakech train and Marrakech to Fes train guides.

Every fare below comes from read-only searches on the official booking site on 22 to 24 October 2026, for a train on 4 November 2026 and one adult. ONCF prices move by train, class and how early you book, so treat them as a snapshot and check the current price before you plan. Euro figures use about 10.8 MAD to the euro and are rounded.

How ONCF routes and prices work

The network has two kinds of trains you will meet most. Al Boraq is the high-speed service between Tangier and Casablanca. Al Atlas is the faster intercity service on the longer lines, including Casablanca to Marrakech and Marrakech to Fes. Slower regional trains and connecting services fill the gaps.

Each ticket is valid only for the train, date, time, class and route printed on it, according to ONCF terms of sale. So you pick one exact departure when you book. You can choose first or second class on most trains.

Prices are not fixed everywhere. On Casablanca to Marrakech the same day showed 120 and 135 MAD on different departures, while Marrakech to Fes showed one flat price per class. In short, some lines are predictable and some are not.

High-speed train passing through green countryside in northern Morocco

Main lines and example fares

RouteJourney time seen2nd class (MAD)1st class (MAD)
Tangier to Casablanca (Al Boraq)about 2h17 on the hourly direct trains190 to 225 (about 18 to 21 EUR)199 to 365
Casablanca to Tangier (Al Boraq)direct trains, similar time129 to 225, one outlier at 129199 to 365
Casablanca to Rabatshort hop, check at booking40 to 50 (about 4 to 5 EUR)check at booking
Casablanca to Marrakech2h54 to 3h00 on the grid we read120 to 135 (about 11 to 13 EUR)89 to 215
Marrakech to Fesabout 6h58, direct260 (about 24 EUR)350 (about 32 EUR)
Casablanca to Fescheck at booking59 to 130check at booking

The Tangier to Casablanca figures are for the Al Boraq trains. Cheaper, slower connecting services also exist on that corridor, with journeys of about 6 to 7 hours and 125 to 157 MAD in second class on the day we checked. If you want speed, look at the direct Al Boraq time. If you want the lowest fare and have time, the connecting option is there.

The downside of these numbers is how local they are. They describe one travel date about two weeks ahead, not a season. Summer, Eid and school holidays can look very different, and seats are often marked as limited, so check the live price.

Tangier, Casablanca and the Al Boraq line

This is the north to south backbone. Direct Al Boraq trains left Tangier Ville every hour from 06:00 on the day we looked, and the journey to Casablanca Voyageurs showed 2h17. Almost every departure carried the label for limited places, so book ahead if your day is fixed. More detail is in our Al Boraq guide.

One surprise: first class is not necessarily a big step up in price. On the same corridor first class started at 199 MAD while second class on some departures was 205 MAD. That is the pricing system at work, not a rule, so compare both classes for your exact train.

For Chefchaouen there is no train. The booking site showed an Al Boraq train to Tangier Ville plus a coach, one change, about 5h07 in total, with only two departures that day (08:00 and 18:00) at 265 MAD in second class. See the Chefchaouen travel guide for the town.

Station platform in Marrakech with palm trees and a few travellers with bags

Casablanca to Marrakech and Marrakech to Fes

Casablanca Voyageurs to Marrakech is the busiest tourist route. The grid we read from the official PDF gave 2h54 to 3h00, with trains roughly every hour through the day. Second class was 120 or 135 MAD depending on the train. First class ranged from 89 to 215 MAD, and on that day some first-class seats were cheaper than some second-class ones.

Marrakech to Fes is a long day. Fourteen direct departures ran from 04:30 to 17:35, each around 6h58. Second class was a flat 260 MAD and first class 350 MAD, apart from the last train of the day on the Fes to Marrakech direction, which showed lower prices (170 and 290 MAD) with limited places. That is one example, not a published fare type.

Two early Marrakech trains (04:30 and 05:30) were slightly slower than the rest, and the 04:30 and one Casablanca departure did not run on Sundays and public holidays on the grid we read. That grid dated from September 2025, so confirm the current timetable. Full detail is in the Casablanca to Marrakech train and Marrakech to Fes train guides.

Trains plus coach: Essaouira, Agadir and Chefchaouen

Some popular places are not on the rail network. The booking site sells combined tickets: a train to a hub, then a coach. From Casablanca Voyageurs the combined journeys were roughly as follows.

DestinationHowTotal time seen2nd class (MAD)
EssaouiraTrain to Marrakech plus coach6h17 to 6h54220 to 235
AgadirTrain to Marrakech plus coach (Supratours stop)6h47 to 6h57255 to 270
ChefchaouenAl Boraq to Tangier Ville plus coachabout 5h07265

These are one change journeys, so a late first train can break the connection. Read the times on the ticket before you buy, and see Getting around Morocco for coach options. Our guides to Essaouira cover the other end.

Second class train carriage with rows of blue seats and a few seated passengers

Discounts that exist and who they suit

  • YALLA AL ATLAS: 49 MAD flat in second class on Al Atlas trains, limited seats, advised at least 7 days ahead, non-refundable and non-exchangeable. We could not confirm which routes are eligible, so check at booking.
  • Small group offer: 10 percent off second class and 15 percent off first class for groups of 3 to 9 people. The official example is 99 MAD instead of 110 MAD per person from Casablanca to Marrakech, bought at the station counter.
  • Children: aged 4 to 15 pay a reduced fare, under 4 travel free on an adult lap, and 15 and over pay the adult fare, according to ONCF terms of sale. The exact amount shows at booking.
  • Youth, student and senior cards (about 20, 30 and 15 percent off) are subscription cards issued at a station. They suit residents, not a visitor on a single trip.

Luggage is simple: bags you can lift and place yourself travel free, up to 1.2 m by 0.6 m by 0.4 m. We found no stated limit on the number of bags, but keep them out of the aisles. For online booking steps, see how to book ONCF tickets online.

Planning a route with these numbers

A common first trip runs Tangier or Casablanca, then Marrakech, then Fes. Add the second class fares from the table and you get a rough rail budget in dirhams, but remember that Casablanca to Marrakech moves with the day. For costs beyond trains, see Morocco travel cost and the Morocco itinerary.

Check the official booking site for the date you want, compare second and first class on the exact train, and keep a screenshot or PDF of the e-ticket. If a number here differs from what you see, trust the booking site.

Frequently asked questions

How much is the train from Casablanca to Marrakech?

On the day we checked, second class was 120 or 135 MAD (about 11 to 13 EUR) and first class ranged from 89 to 215 MAD. Prices change by train, so check the current price.

How long does the train from Marrakech to Fes take?

Direct trains showed about 6h58 on the day we checked, with 14 departures between 04:30 and 17:35. Confirm the current timetable.

Does ONCF go to Essaouira, Agadir or Chefchaouen?

Not by rail alone. The booking site sells a train plus coach ticket with one change to each of them, at the times and prices in the table above.

Is first class more expensive on every train?

No. On Casablanca to Marrakech some first-class departures (89 and 119 MAD) were cheaper than some second-class ones (135 MAD) that day. Compare both classes for your train.

Are there discounts for children or groups?

Children aged 4 to 15 pay a reduced fare and under 4 travel free on an adult lap. Groups of 3 to 9 get 10 percent off second class and 15 percent off first class.

Can I take a large suitcase on the train?

Bags you can carry and lift yourself are allowed free within 1.2 m by 0.6 m by 0.4 m. We found no stated limit on the number of bags.

Do fares change during the year?

Yes, they can. Our figures are for one travel date in November 2026, so busy periods may look different.

Sources checked

Checked 22 to 24 October 2026 on the official ONCF booking site (read-only, nothing bought) and on official ONCF pages. The Marrakech to Fes grid is valid from 15 September 2025, so it may have changed.

Prices and times can change without notice. Confirm them before you pay or travel.

More guides to read next

You may have missed

PlanningBest Time to Visit Morocco Travel guideMorocco Travel Tips: Money, Tipping, Taxis and SIM Cards Travel guideMarrakech to Fes Train: Times, Stations and What to Expect City guideTangier Travel Guide: Morocco’s Northern Gateway