Book ONCF Train Tickets: 5 Steps
If you’re traveling in Morocco, booking your train ticket online can save you a lot of time — especially on popular routes like Casablanca to Marrakech, Rabat to Tangier, and Casablanca to Fes.
Table of Contents
In this guide, you’ll learn exactly how to book ONCF train tickets online in 2026, step-by-step, plus what to do if payment fails (which happens sometimes).
Quick Answer: Can You Book ONCF Tickets Online?
Yes. In 2026, you can book ONCF tickets online through the official ONCF booking platform.
Online booking is useful because:
- you avoid long station lines
- you secure seats in advance
- you can compare times easily
- you can choose 1st class faster
What You Need Before Booking ONCF Online
Before you start, prepare these:
✅ 1) Your Route
Example:
- Casablanca Voyageurs → Marrakech
- Rabat Ville → Tangier
- Casablanca → Fes
✅ 2) Your Travel Date
ONCF tickets can sell out on:
- weekends
- holidays
- evening trains
- peak tourist seasons
✅ 3) A Working Payment Card
This is the #1 problem for tourists.
Most common working cards:
- Visa
- Mastercard
Sometimes cards fail due to:
- bank security
- international restrictions
- online payment limits
Step-by-Step: How to Book ONCF Train Tickets Online (2026)
Step 1: Go to the ONCF Booking Website
Use the official ONCF booking platform.
Tip: If the website is slow, try:
- another browser
- your phone instead of laptop
- incognito mode
Step 2: Enter Your Departure + Arrival Station
For example:
- Departure: Casablanca Voyageurs
- Arrival: Marrakech
Make sure you select the correct Casablanca station (there are multiple).
Step 3: Choose Your Travel Date
Select the date carefully.
If you’re flexible, try multiple days to find:
- cheaper tickets
- better departure times
- less crowded trains
Step 4: Select Your Train Departure Time
You’ll see multiple options.
Best times for tourists:
- mid-morning
- mid-afternoon
Most crowded times:
- early morning
- late afternoon / evening
Step 5: Choose Your Class (1st or 2nd)
ONCF usually offers:
2nd Class
- cheaper
- can be crowded
- best for budget travelers
1st Class
- quieter
- more comfortable
- recommended for long routes
Step 6: Add Passenger Details
You’ll usually need:
- full name
- number of passengers
- sometimes ID/passport details (depends on route)
Step 7: Pay Online
Pay using your card.
After payment:
- you’ll receive a ticket confirmation
- you can download your ticket (PDF)
- you may receive an email confirmation
Step 8: Save Your Ticket (Very Important)
Do one of these:
- download PDF on your phone
- screenshot the QR code
- print the ticket (optional)
Most travelers just show the ticket on their phone.
What If ONCF Online Payment Fails?
This is common — especially for tourists.
Here are the real fixes that work:
✅ Fix 1: Try a Different Card
Sometimes one bank blocks Morocco payments.
✅ Fix 2: Use Another Browser
Chrome works best for most people.
✅ Fix 3: Try Mobile Instead of Desktop
ONCF sometimes loads better on mobile.
✅ Fix 4: Try Again After 10–20 Minutes
The system can temporarily bug out.
✅ Fix 5: Buy at the Station
If online fails completely, you can still buy tickets at:
- Casablanca Voyageurs
- Rabat Ville
- Marrakech station
- Tangier Ville
Can You Buy ONCF Tickets at the Station Instead?
Yes, and it’s still normal in Morocco.
Station ticket options:
- ticket counter
- ticket machines
- sometimes ticket agents
But for popular routes, buying late can mean:
- sold out trains
- no seats together
- only 2nd class available
When Should You Book ONCF Tickets Online?
Book early if:
- you travel Friday–Sunday
- you travel during holidays
- you travel in the evening
- you want 1st class
- you travel with family
You can book same day if:
- it’s a weekday
- you travel mid-day
- you’re flexible
Do You Need to Print ONCF Tickets?
No.
In 2026, you can usually show:
- QR code
- PDF ticket
- screenshot
Just make sure your phone has battery.
Can You Change or Refund ONCF Tickets?
This depends on:
- ticket type
- route
- booking rules
Sometimes ONCF allows changes, but not always.
Best advice:
- double-check your date/time before paying
- avoid last-minute mistakes
Best Routes to Book Online (Most Useful)
Online booking is especially helpful for:
- Casablanca → Marrakech
- Casablanca → Fes
- Casablanca → Tangier
- Rabat → Tangier
- Marrakech → Casablanca
- Marrakech → Rabat
Tourist Tips for ONCF Online Booking
✔ Always Use Casablanca Voyageurs (Not Casa Port)
Many tourists accidentally choose the wrong station.
✔ Arrive Early Even With Online Tickets
Be at the station at least:
- 25–30 minutes early
- 45 minutes early during weekends
✔ Keep Your Ticket Ready
Conductors may check tickets:
- on the platform
- inside the train
Related Guides
If you’re planning Morocco travel, these will help:
- ONCF Casablanca to Marrakech Ticket Price (2026)
- ONCF Casablanca to Marrakech Train Schedule (2026)
- Morocco Train Travel Guide (All Routes + Tips)
FAQ
1) Can tourists book ONCF tickets online?
Yes. Tourists can book ONCF tickets online in 2026 using Visa or Mastercard.
2) Do I need a Moroccan phone number to book?
Usually no. You can book using an email and card.
3) What if ONCF online payment fails?
Try a different card, browser, or mobile. If it still fails, buy at the station.
4) Can I show ONCF tickets on my phone?
Yes. A PDF or QR code on your phone is usually enough.
5) Is ONCF online booking safe?
Yes, as long as you use the official ONCF platform.
Conclusion
Booking ONCF train tickets online in 2026 is one of the easiest ways to travel Morocco without stress. It saves time, secures seats, and helps you avoid crowded station lines.
If the website fails, don’t panic — buying at the station is still totally normal, especially for mid-day trains.










