ONCF booking guide

How to book ONCF train tickets online in Morocco

If you want to travel by train in Morocco without last-minute stress, booking online is usually the easiest place to start. This guide shows you how to search ONCF tickets, when to choose Al Boraq, what to keep on your phone, and the common mistakes that can slow the whole trip down.

Front view of a modern Moroccan train at the station.

Quick answer

Yes, you can book Morocco train tickets online. The main places to start are the official ONCF booking channels and the ONCF Voyages app, and you can also use a live search tool if you want to compare current departures quickly before checkout.

The biggest win is simple: search early, choose the correct station pair, save your e-ticket on your phone, and do not leave the station arrival too tight on the day you travel.

What this guide covers

Can you book ONCF train tickets online?

Yes. Morocco train tickets can be booked online, and that is usually the smoothest option if you already know your route and date. It gives you a clearer view of the departures available for your trip and makes it easier to decide whether you want to prioritize speed, price, or comfort.

For many travelers, online booking is especially helpful when they are arriving in Morocco on a schedule and do not want to spend the first part of the trip standing in line or guessing which departure still has space.

It is also the easiest way to compare whether your route makes more sense on Al Boraq or on the regular ONCF network before you pay.

What to prepare before you search tickets

You do not need much, but having the basics ready will make the whole process faster:

  • Your departure city or station
  • Your arrival city or station
  • Your travel date and preferred departure time
  • A rough idea of whether speed or broader route coverage matters more
  • Your preferred class if comfort matters on a longer trip
  • A payment method and enough time to review the booking calmly

If you are planning a longer or more popular route, it is worth checking a few times of day before you decide. A slightly earlier or later departure can make the trip feel much easier.

How to book ONCF train tickets online step by step

1. Start with the exact route

Search with the actual stations or city pair you plan to travel, not just the broad region. This is one of the easiest ways to avoid confusion once you reach the station.

2. Decide whether to check Al Boraq first

If your route is on the main northern high-speed corridor, Al Boraq is usually the first train to compare. ONCF says Al Boraq links Casablanca and Tangier via Casa Voyageurs, Rabat Agdal, Kenitra, and Tangier, with onward transfers to other cities.

3. Compare departure time and class together

Do not choose on price alone. A slightly better departure time or a more comfortable class can save a lot of stress on longer travel days, especially if you have luggage or another connection after arrival.

If you are unsure which class fits the trip, read our first class vs second class guide before you book.

4. Save your e-ticket properly

Keep the ticket accessible on your phone before you leave for the station. As a practical rule, save a screenshot, the PDF, or the confirmation email somewhere you can open even if your connection is weak.

5. Arrive early enough to board calmly

ONCF’s public e-ticket guidance tells travelers not to cut the timing too tight. For busy stations and unfamiliar routes, getting there with margin is a much better move than treating the train like a metro.

Al Boraq vs regular ONCF: which one should you choose?

The simple version is this: choose Al Boraq when speed matters most on the northern corridor, and choose regular ONCF when your route needs broader network coverage.

  • Check Al Boraq first for faster travel between Tangier, Rabat, Kenitra, and Casablanca.
  • Check regular ONCF first for routes such as Marrakech, Fes, or longer classic intercity trips.
  • For long travel days, class choice matters more than most first-time visitors expect.

If you are not sure, search both when possible. The best booking decision is often the one that gives you the right arrival time and the least stressful travel day, not just the cheapest result on the screen.

If you want the full breakdown, read our Al Boraq vs regular ONCF comparison guide before you search tickets. If you specifically want to know whether the speed advantage is worth it, read our Al Boraq guide.

Popular Morocco train routes worth checking first

These are some of the route types most likely to turn into real bookings, especially for first-time travelers:

If you are arriving by air and continuing by train, take extra care with station names and transfer time. Airport-to-city rail trips often feel easy on paper, but they go much better when you build in a buffer instead of trying to cut it close.

Common booking mistakes to avoid

  • Searching the wrong departure or arrival station
  • Choosing a cheap ticket but a bad departure time
  • Leaving the booking until the last minute on a busy route
  • Failing to save the ticket offline before heading to the station
  • Arriving too late to board calmly, especially at large stations

The best way to avoid nearly all of these mistakes is to slow down for two minutes before you pay and check the route, time, class, and station one more time.

FAQ

Should I book Morocco train tickets in advance?

If your route is popular, your travel date matters, or you want a specific departure window, yes. The earlier you check, the easier it is to book the trip you actually want.

Can I use an e-ticket on my phone?

Yes, that is the practical way most travelers handle it. Save it somewhere easy to open before you leave, rather than relying on live internet at the station.

Is first class worth it on Morocco trains?

On longer routes, many travelers feel it is worth it for the extra calm and comfort. On shorter routes or tighter budgets, standard class can still work well.

What is the best route to check if I want to try Al Boraq?

Tangier to Casablanca is one of the most natural places to start because it sits right in the corridor where speed matters most.

Search tickets before you move on

If your route is already clear in your head, now is the right moment to search tickets and see what is live. That is the easiest way to turn travel planning into an actual booking instead of another saved tab.

Search Tickets