How to Buy ONCF Train Tickets in Morocco (2026 Guide)
21 November 2026 · 7 min read · By Car Hire Marrakech

You can buy ONCF train tickets in three ways: on oncf-voyages.ma (English available, bookings open up to 3 months ahead), in the official ONCF Voyages app, which stores an e-ticket on your phone, or at the station counter with cash or card. Advance non-flexible fares are cheaper than flexible ones. Foreign cards are sometimes refused online; if that happens, buy at the station, as trains rarely sell out.
| Where to buy | oncf-voyages.ma, ONCF Voyages app, station counters[1][2] |
|---|---|
| Booking window | Up to 3 months before departure[1] |
| Fare types | Cheaper non-flexible advance fares; dearer flexible fares[1] |
| Children | 0–3 free; 4–10 half fare; 11+ adult fare[1] |
| Seats | Reserved seat included on Al Boraq and Al Atlas[1] |
| Help | ONCF customer service: 2255 (in Morocco)[3] |
Which trains you can book
ONCF, Morocco's national railway, runs three main types of train:
- Al Boraq: high-speed trains between Tangier, Kenitra, Rabat-Agdal and Casablanca. Not yet to Marrakech: see does Al Boraq go to Marrakech?
- Al Atlas: intercity trains, including every train from Marrakech (to Casablanca, Rabat, Fes, Tangier via a change)
- TNR: regional shuttles around Casablanca and Rabat, with unreserved second class[1]
- ONCF's booking site and app also sell Supratours coaches connecting with trains, for example Marrakech to Essaouira or Agadir[2]
Buying online on oncf-voyages.ma
The official site is oncf-voyages.ma (switch to English at the top right)[1]. Avoid look-alike sites and resellers that add fees, unless your card is refused (see below).
- Enter departure and arrival stations ("Marrakech", "Casa Voyageurs", "Rabat Agdal", "Fes", "Tanger Ville"), date and number of passengers
- Choose a train and class. Journeys needing a change, such as Marrakech–Tangier via Casablanca, are sold as one ticket
- Pick the fare: non-flexible advance fares are cheaper; flexible fares cost more, and last-minute purchases are usually priced as flexible[1]
- Enter each passenger's name and pay by card
- Download your e-ticket and keep it on your phone (and a screenshot, in case you have no signal). Keep your passport with you on board
- Bookings open up to 3 months ahead[1]
Planning this trip? Check the cars for your dates.Free cancellation • No credit card required • Pay on arrival
Get quoteBuying in the ONCF Voyages app
ONCF launched its ONCF Voyages app in April 2025[4]. It books Al Boraq, Al Atlas, TNR and Supratours journeys, shows a seat map on Al Boraq, applies ONCF discount cards, sends departure reminders and delay alerts, and stores the ticket on your phone[2].
The app is useful, but not flawless: in November 2026 it was rated 2.4/5 on the App Store, with reviewers mentioning login problems and foreign credit cards being rejected[2]. If the app fails, try the website, then the station.
Buying at the station
Every station has ticket counters. Marrakech station is in Guéliz, on Avenue Hassan II, a short petit taxi ride from the medina; see Marrakech train and bus stations.
Counters take cash, and major stations also take cards[1]. Queues can be long on Friday and Sunday afternoons and before holidays, so arrive 20–30 minutes early if you have not bought ahead. Do not plan on buying on board: buy before you get on the train.
Couchette tickets were never sold online and required a passport at the station[1]; the Tangier–Marrakech night train was reported suspended in late 2026 because of high-speed line works[1].
When your foreign card is refused
This is the most common problem visitors report. The ONCF site and app do not accept every foreign card; payment is sometimes simply declined[1][2]. What to try, in order:
- Tell your bank you are travelling and approve the payment in your banking app
- Try a different card (Visa vs Mastercard, credit vs debit)
- Buy at the station counter: trains rarely sell out, apart from first class on Al Atlas trains, which has only one carriage[1]
- As a last resort, use an international reseller, accepting its booking fee[1]
Prices, classes and discounts
Fares vary with how early you book and how flexible the ticket is. As a guide from late 2026, Tangier–Casablanca on Al Boraq cost about 99–224 MAD in second class and 129–292 MAD in first; Tangier–Marrakech, with a change, about 186–338 MAD in second and 249–472 MAD in first[1]. Marrakech–Casablanca on Al Atlas is cheaper (roughly 100–150 MAD in second class, approximate): check the exact fare on oncf-voyages.ma.
First class gives a wider seat and, on Al Atlas, a quieter carriage; it is worth it in summer and on busy weekends. Children under 4 travel free and children aged 4 to 10 pay half fare[1]. ONCF also sells discount cards, mainly for residents; in summer 2026 it added a card giving 15% off Al Boraq and Al Atlas for travellers aged 31 to 59[5].
Tips for travelling by train from Marrakech
If your plan mixes train and road, for example the train to Fes and a drive back over the Atlas, we can deliver one of our own cars to Marrakech, Agadir or Essaouira: see car hire in Morocco or get a quote.
- Check the date of your ticket: weekend and holiday trains fill up first
- On a connection at Casa-Voyageurs, follow the platform screens; Al Boraq and Al Atlas leave from the same station
- High-speed line works mean occasional closures and replacement buses until 2029: check the app or the station board a few days before
- Pay for train tickets by card and keep cash for the petit taxi to the station: see paying for transport in Marrakech
- For places with no railway (Essaouira, Agadir, Ouarzazate, the Atlas), use a coach or a car: compare CTM and Supratours
Frequently asked questions
- Can I buy Moroccan train tickets online?
- Yes, on oncf-voyages.ma or in the ONCF Voyages app, up to 3 months ahead. You get an e-ticket to show on your phone.
- Do I need to book Moroccan trains in advance?
- Not usually: trains rarely sell out. Booking early gets cheaper non-flexible fares and is wise for first class, weekends and holidays.
- Why was my card refused on the ONCF website?
- The site and app do not accept every foreign card. Approve the payment with your bank, try another card, or buy at the station counter.
- Do children pay on Moroccan trains?
- Children aged 0 to 3 travel free, children aged 4 to 10 pay half fare, and from 11 they pay the adult fare.
- Can I buy a ticket on the train?
- Do not rely on it. Buy before boarding, at the counter, online or in the app.
- Is there an ONCF helpline?
- Yes: ONCF customer service is reachable on 2255 from a Moroccan phone.
See the price for your dates in seconds.Free cancellation • No credit card required • Pay on arrival
Get quoteSources
- Train travel in Morocco: a beginner's guide, The Man in Seat 61 (accessed 2026-11-21)
- ONCF Voyages (App Store listing), ONCF / Apple App Store (accessed 2026-11-21)
- Travaux de la LGV Kénitra-Marrakech : l'ONCF annonce des perturbations sur plusieurs lignes dès le 5 septembre, Le360 (accessed 2026-11-21)
- L'ONCF lance une nouvelle application mobile pour la gestion des voyages (11 April 2025), Médias24 (accessed 2026-11-21)
- L'ONCF déploie son plan spécial été 2026, Le Matin (accessed 2026-11-21)


