Morocco Train Tickets Online: 2026 Guide to Skipping Queues
Key Takeaway: Morocco's rail network is fast and affordable, with the high-speed Al Boraq cutting the Tangier to Casablanca trip down to just 2 hours and 10 minutes. First-class fares rarely cost more than $30, but foreign credit cards routinely fail on the official government portal. To skip the station queues and secure your seats in advance, buy your Morocco train tickets online via moroccotrain.com.
Picture the ticket counter at Casa Voyageurs station on a Friday afternoon. The queue snakes past the station café, the digital departure board is flashing, and your train leaves in exactly twelve minutes. You don't want to be in that line. Figuring out how to buy Morocco train tickets online: ONCF booking guide 2026 edition is your pass to skipping the chaos entirely.
Morocco boasts the only high-speed rail network in Africa. It is efficient, heavily subsidized, and remarkably comfortable. But securing a seat before you arrive in the country remains surprisingly frustrating for international travelers. The official ticketing system is notorious for rejecting foreign payment methods when travelers try to secure Morocco train tickets. So, how do you lock in a window seat on the 320 km/h Al Boraq without wanting to pull your hair out? You need a workaround.
I have ridden these rails from the coastal breeze of Tangier down to the red dust of Marrakech. I know which side of the train gets the best views (sit on the right when heading south), and I know exactly why your Visa card just got declined. Let's fix your itinerary.
Quick Overview: Buying Morocco Train Tickets in 2026
Before we break down the specifics of the 2026 timetable, here are the non-negotiable facts about Moroccan rail travel and booking Morocco train tickets.
- The Operator: All passenger trains are run by ONCF (Office National des Chemins de Fer).
- The Trains: You will ride either the high-speed Al Boraq or the traditional intercity Al Atlas.
- Booking Window: Tickets generally open 30 to 90 days before departure, depending on the season.
- Dynamic Pricing: Fares increase as the departure date approaches. Walk-up fares are the most expensive.
- Digital Tickets: You do not need to print your ticket. A PDF barcode on your phone works perfectly.
Why Buying Moroccan Train Tickets Online is a Headache (And How to Fix It)
You find the perfect departure time. You enter your passport details. You type in your credit card number, hit submit, and get slapped with a vague error message in French. Welcome to the ONCF payment gateway.
In 2026, roughly 70% of North American and UK credit cards fail on the official ONCF portal due to strict 3D Secure authentication mismatches. Moroccan bank security protocols simply do not play nicely with foreign cards. You can try calling your bank to authorize the foreign transaction, but half the time, the block is happening on the Moroccan side before your bank even sees the request.
The Solution for 2026 Travelers
You have two choices. You can wait until you arrive in Morocco, walk up to a station kiosk, and hope the train isn't sold out. (During summer holidays or Eid, it absolutely will be sold out). Or, you can use a dedicated booking agency that accepts international payments seamlessly.
If you want peace of mind, Book ONCF Morocco Train Tickets Online | Avoid Payment Errors. Using a localized service bypasses the banking firewall entirely. You pay a tiny convenience fee, but you get guaranteed seats, PDF tickets emailed instantly, and customer support in English. To save yourself the payment gateway headache, book Morocco train tickets online before you fly.
Al Boraq vs. Al Atlas: Choosing Your Morocco Train Tickets
Morocco's rail system is essentially split into two different eras. Depending on your route, choosing the right Morocco train tickets will allow you to experience either cutting-edge modernity or mid-century European charm.
The High-Speed Marvel: Al Boraq
Launched in 2018, the Al Boraq is the crown jewel of African infrastructure. These double-decker TGV trains operate exclusively on the coastal corridor connecting Tangier, Kenitra, Rabat, and Casablanca. The Al Boraq cuts the Tangier to Casablanca journey from nearly five hours down to a breezy two hours and ten minutes, running at top speeds of 320 km/h.
The seats recline deep enough for a proper nap, the air conditioning is fierce, and the legroom puts most airlines to shame. If your route includes the Al Boraq, take it. Securing Morocco train tickets for this route is a priority for many, so for a deeper dive into the high-speed experience, check out our Al Boraq High-Speed Train: Tickets & Routes [2026 Guide].
The Traditional Intercity: Al Atlas
For destinations south of Casablanca (like Marrakech) or inland (like Fes and Meknes), you will ride the Al Atlas trains. These are locomotive-hauled, traditional carriages. They top out at around 160 km/h. They are older, yes. But they are incredibly scenic. When you are holding Morocco train tickets for the Al Atlas, you are in for a classic and comfortable experience.
First-class on Al Atlas means sitting in a closed compartment with six seats. Second-class means an open carriage or an eight-seat compartment. The air conditioning can be temperamental in the height of August, but the wide windows offer spectacular views of the changing terrain.
Al Boraq vs. Al Atlas Comparison (2026 Data)
| Feature | Al Boraq (High-Speed) | Al Atlas (Intercity) | Action |
|---|---|---|---|
| Top Speed | 320 km/h | 160 km/h | Check Routes |
| Primary Routes | Tangier, Rabat, Casablanca | Marrakech, Fes, Oujda, Nador | Check Routes |
| Seat Reservations | Mandatory (Guaranteed seat) | Included, but 2nd class can oversell | Reserve Seat |
| Dining Options | Modern cafeteria car upstairs | Roving snack cart only | Book Now |
To ensure you get the exact train type you want, check latest prices on moroccotrain.com.
Popular Routes, Fares, and Timetables for 2026
Fares in Morocco are incredibly cheap compared to Europe or North America. Even with recent 2026 price adjustments, rail travel remains a budget-friendly option. When you buy Morocco train tickets, you are getting excellent value for the distance covered.
Casablanca to Marrakech
This is the most heavily trafficked tourist route in the country and accounts for a large portion of Morocco train tickets sold each year. The Casablanca to Marrakech Train takes approximately 2 hours and 40 minutes. Booking a first-class ticket on the Casablanca to Marrakech route costs around 180 MAD ($18) and guarantees you a reserved, air-conditioned seat. Trains depart roughly every two hours from Casa Voyageurs.
Fes to Rabat
Connecting the spiritual capital to the political capital. The Fes to Rabat Train is an Al Atlas service taking just under 3 hours. It is a beautiful ride through rolling agricultural lands. Expect to pay about 120 MAD ($12) for second class and 170 MAD ($17) for first class.
Tangier to Fes
A classic northern route. The direct Tangier to Fes Train takes about 4 hours and 20 minutes. It winds through the Rif Mountains. It is a slower journey, but the scenery is fantastic. First-class fares hover around 165 MAD ($16). You can easily secure these Morocco train tickets via our online booking link.
The Tangier to Marrakech Night Train
For those looking to save on a hotel room, ONCF operates a dedicated night train (Train de Nuit) between Tangier and Marrakech. This journey takes around 9 to 10 hours. You can book a standard seat, but the real value is reserving a berth in a shared sleeper cabin. A single bed in a 4-berth couchette costs roughly 350 MAD ($35). Because sleeper cabins are limited, you must secure these specific Morocco train tickets well in advance.
2026 Route Pricing & Duration Guide
| Route | Duration | Est. 1st Class Fare (USD) | Booking Link |
|---|---|---|---|
| Casablanca to Marrakech | 2h 40m | $18.00 | Book Route |
| Tangier to Casablanca (Al Boraq) | 2h 10m | $28.00 | Book Route |
| Marrakech to Rabat | 3h 30m | $22.00 | Book Route |
| Fes to Casablanca | 3h 50m | $20.00 | Book Route |
Fares fluctuate based on demand. To lock in these exact prices, book Morocco train tickets online as soon as your dates are confirmed.
First Class vs. Second Class: Is the Upgrade Worth It?
Travelers always ask me if first class is actually necessary. My answer is almost always yes. Investing in first-class Morocco train tickets is a smart move depending on your tolerance for crowds.
First-class tickets in Morocco only cost 30% to 50% more than second-class, making it one of the most affordable luxury rail upgrades in the world. We are talking about a difference of $5 to $10. For that price, the benefits are undeniable.
The Reality of Second Class
Second class is perfectly safe. It is where most locals travel. On the Al Boraq, second class is actually quite comfortable, featuring a 2+2 seating layout with decent legroom. But on the older Al Atlas trains, second class can be chaotic. ONCF sometimes oversells second-class tickets on Al Atlas routes. This means if you board late, you might find someone in your seat, or you might end up standing in the aisle for three hours. Second class is fine for an hour, but unbearable for four.
The First Class Advantage
First class guarantees your seat. No one will be standing in the aisles. The seats are wider (a 2+1 layout on Al Boraq), the carriages are quieter, and the luggage racks are significantly less crowded. Buying Morocco train tickets for the premium carriage ensures a stress-free trip if you are traveling with large suitcases. Read our detailed breakdown in Al Boraq High-Speed Train: First vs Second Class [2026].
Ready to treat yourself? Check latest prices on moroccotrain.com and secure your premium seat.
Navigating Train Stations in Morocco: What to Expect
Moroccan train stations have undergone massive renovations over the last decade. The major hubs—Casa Voyageurs, Rabat Agdal, Tangier Ville, and Marrakech—are modern, clean, and easy to navigate. Before you arrive, make sure you have your Morocco train tickets ready on your phone as most stations feature large digital departure boards in both Arabic and French.
Inside these stations, you will find familiar amenities. There are clean public restrooms (usually costing 2 MAD to enter), ATMs that accept foreign cards, and a variety of food options ranging from local bakeries to international chains like McDonald's and Starbucks. If you need to wait for your departure, the station cafés offer a comfortable place to grab a mint tea.
6 Pro Tips for Morocco Train Travel in 2026
Riding the rails in North Africa comes with its own set of unwritten rules. Here is how to travel like a veteran.
- Know Your Casablanca Stations: Casablanca has two main stations. Casa Port is only for local commuter trains (like the airport shuttle). Casa Voyageurs is the main hub for Al Boraq and long-distance Al Atlas trains. Do not go to Casa Port if you are heading to Marrakech.
- Bring Your Own Toilet Paper: Train bathrooms start the journey pristine but degrade rapidly after two hours. Always carry a small pack of tissues and some hand sanitizer.
- Arrive 30 Minutes Early: Security checks at major stations (especially for Al Boraq) resemble light airport security. Your bags will go through an X-ray machine. Give yourself a buffer. For station-specific advice, read Marrakech Railway Station: 5 Tips to Skip Queues & Taxi Scams.
- Pack Snacks for Al Atlas: While the high-speed trains have a lovely café, the traditional trains only have a cart pushed by an attendant selling instant coffee and basic biscuits. Bring water and food for longer hauls.
- Mind the Luggage Limits: Officially, you are allowed two large bags. Unofficially, no one weighs them. But you must be able to lift your bags onto the overhead racks yourself. Train staff will not assist you.
- Book Multi-Leg Journeys Together: If you are traveling from Tangier to Marrakech, you will take the Al Boraq to Casablanca, then switch to the Al Atlas. Book this as a single ticket to ensure the connection is guaranteed. You can easily set this up when you book Morocco train tickets online through our portal.
Frequently Asked Questions
Can I buy Morocco train tickets online with a foreign credit card?
Yes, although the official ONCF portal frequently rejects international cards, travelers can successfully buy Morocco train tickets online via third-party platforms like moroccotrain.com to ensure payment processing. Many foreign travelers find that standard 3D Secure protocols on Moroccan government sites are incompatible with US or UK banking systems.
How far in advance can I book ONCF train tickets?
Tickets for Moroccan trains generally become available for purchase between 30 and 90 days before the departure date. Booking early is highly recommended during peak tourist seasons and for the Al Boraq high-speed line to secure the lowest dynamic pricing tiers.
Is there a high-speed train from Tangier to Casablanca?
The Al Boraq high-speed train connects Tangier and Casablanca in approximately 2 hours and 10 minutes, traveling at speeds up to 320 km/h. This service has significantly reduced travel time compared to the traditional 5-hour journey on older rail lines.
Do I need to print my Morocco train ticket?
No, you do not need a physical printout as a digital PDF Morocco train ticket with a scannable barcode on your smartphone is fully accepted by ONCF conductors. Simply ensure your device is charged and the brightness is turned up when the ticket inspector boards the carriage.
Are train tickets cheaper if bought in advance in Morocco?
Yes, Morocco utilizes a dynamic pricing model where you can buy Morocco train tickets in advance for significantly cheaper rates than walk-up fares bought at the station. Prices for the Al Boraq and Al Atlas services increase as the train fills up or as the departure date approaches.
What is the difference between Al Boraq and Al Atlas trains?
Al Boraq is the dedicated high-speed rail service operating between Tangier and Casablanca, while Al Atlas refers to the standard intercity trains serving Marrakech, Fes, and Oujda. Al Boraq requires seat reservations, whereas Al Atlas offers both reserved seating in first class and unreserved options in second class.


![Morocco Train Routes: Al Boraq & Al Atlas [2026 Guide]](https://static.moroccotrain.com/images/articles/cover-1773065626181.png)
