Book Morocco Train Tickets Online: Bypass ONCF Payment Errors

Key Takeaway: High-speed Al Boraq tickets from Casablanca to Tangier cost around 149 MAD ($15) in second class and take just 2 hours and 10 minutes. But foreign credit cards are notoriously rejected by the official state railway website, leaving travelers stranded at the ticket counter. Save yourself the headache and book Morocco train tickets ahead of time directly through moroccotrain.com.
Picture this. You are standing on the sunlit platform at Casa Voyageurs station, sweet mint tea in hand. Africa's only bullet train glides in silently. The sleek Al Boraq looks like it just rolled out of a sci-fi movie, and it is about to cut your travel time in half. But getting that ticket in your hand? That is where things often go sideways for foreign travelers. If you are wondering exactly how to book Morocco train tickets online in 2026, you are not alone. The national rail network is incredible. The digital booking infrastructure, however, can be a massive headache for anyone without a local Moroccan bank account.
I have ridden these rails from the breezy northern coast of Tangier down to the red dust of Marrakech more times than I can count. The trains are punctual, clean, and ridiculously cheap by European standards. And the scenery out the window is pure magic. So, let's cut through the confusion. Here is exactly how to navigate the system, bypass the payment errors, and get your tickets sorted before you even pack your bags.
Quick Overview: Book Morocco Train Tickets in 2026

- The Operator: ONCF (Office National des Chemins de Fer) runs all passenger trains in Morocco.
- The Trains: You will ride either the high-speed Al Boraq (reaching 320 km/h) or the conventional Al Atlas trains.
- The Payment Problem: The official ONCF site still routinely declines US, UK, and Australian credit cards in 2026.
- The Booking Window: Tickets generally open 30 to 90 days in advance, depending on the route and the season.
- The Solution: Use a dedicated agency to bypass the payment firewall and guarantee your seat.
The ONCF Payment Hurdle: Why Your Card Keeps Failing

Here is the frustrating reality of booking Moroccan travel. You spend an hour planning your perfect itinerary on the official ONCF website. You select your seats, enter your passport details, and click pay. Then, you get a vague error message. You try a different card. Same error. You call your bank, and they tell you they never even saw a charge attempt.
In 2026, over 70% of North American and European credit cards are rejected by the ONCF portal due to incompatible 3D Secure domestic payment gateways. This makes it incredibly difficult to book Morocco train tickets with a standard international card. The system is built for Moroccan bank cards. It simply does not play nicely with foreign Visa, Mastercard, or Amex networks. According to international rail experts at The Man in Seat 61, this payment block remains the single biggest hurdle for tourists trying to organize independent travel in the country.
You could wait until you arrive in Morocco to buy your tickets at the station. But I strongly advise against this. Popular routes sell out days in advance, especially during the summer months and local holidays. You do not want to waste your precious vacation time standing in a sweaty queue, only to find out the next available train is six hours away. For a deeper dive into this exact issue, check out our guide on Morocco Train Tickets Online: 2026 Prices & Payment Fix.
Comparing Your Booking Options
If you want peace of mind when you book Morocco train tickets, you need to use a reliable third-party service. Here is how the booking platforms stack up this year.
| Platform | Foreign Cards Accepted? | English Interface? | Support | Action |
|---|---|---|---|---|
| Official ONCF Site | Rarely (High failure rate) | Basic / Buggy | None in English | N/A |
| MoroccoTrain.com | Yes (Stripe/PayPal) | Fully Localized | 24/7 English Support | Book Now |
| Station Counters | Yes (Physical terminal) | N/A (French/Arabic spoken) | In-person only | N/A |
Do not leave your itinerary to chance. You can check latest prices on moroccotrain.com and secure your tickets in under three minutes.
Step-by-Step Guide: How to Book Morocco Train Tickets Online
If you are ready to lock in your itinerary, the process is straightforward when you use a platform designed for international travelers. Here is exactly how to book Morocco train tickets without the stress:
- Select Your Route and Date: Head to the portal to book Morocco train tickets on moroccotrain.com. Enter your departure city (e.g., Casablanca) and arrival city (e.g., Tangier), along with your preferred travel date.
- Choose Your Class: Decide between First Class (assigned seating, more legroom) and Second Class. Given the low price difference, First Class is highly recommended for journeys over two hours.
- Enter Passenger Details: Input the names exactly as they appear on your passports. This is crucial for ticket verification onboard.
- Secure Payment: Pay using your standard Visa, Mastercard, Amex, or PayPal. Because the payment goes through an international gateway like Stripe, your transaction will process instantly without the dreaded ONCF 3D Secure error.
- Receive E-Tickets: Within minutes, your confirmed e-tickets will arrive in your email inbox as a PDF. Simply save them to your phone—no printing required!
Train Types and Classes: What Are You Actually Buying?

Morocco essentially operates two different railway realities. There is the ultra-modern high-speed line in the north, and the legacy conventional line that stretches south and east. Knowing which train you are choosing when you book Morocco train tickets dictates how comfortable your journey will be.
Al Boraq: The Pride of North Africa
Operating exclusively between Tangier, Kenitra, Rabat, and Casablanca, the Al Boraq is a marvel. It is a double-decker TGV train that hits speeds of 320 km/h (200 mph). The ride is incredibly smooth. You can balance a full cup of coffee on your tray table while blasting past olive groves at top speed.
Al Atlas: The Conventional Workhorse
For journeys south to Marrakech or east to Fes, you will ride the Al Atlas trains. These max out at about 160 km/h. They are older, but ONCF has refurbished the carriages extensively for 2026. The air-conditioning works well, though it can be aggressively cold. Pack a light sweater.
Upgrading to First Class on a Moroccan train rarely costs more than $10 to $15 extra, making it one of the best travel bargains in North Africa. Is it worth it? Absolutely. When you book train tickets in Morocco, first class gives you wider seats, a guaranteed assigned spot, and significantly more room for luggage. For a detailed breakdown of the seating arrangements, read our Al Boraq High-Speed Train: First vs Second Class [2026] guide.
| Feature | First Class | Second Class |
|---|---|---|
| Seating Layout | 3 seats across (1-2 configuration) | 4 seats across (2-2 configuration) |
| Seat Assignment | Always guaranteed | Assigned, but often ignored by locals |
| Luggage Space | Ample racks at carriage ends | Fills up very quickly |
| Power Outlets | At every seat | Shared or unavailable on older trains |
Ready to lock in that extra legroom? Book Morocco train tickets online and choose your preferred class instantly.
Top Routes, Travel Times, and 2026 Pricing

If you plan to book Morocco train tickets for your trip, let's talk logistics. How long does it actually take to get from point A to point B? Prices fluctuate slightly based on demand (ONCF introduced dynamic pricing a few years ago), but here are the baseline expectations for 2026.
Casablanca to Tangier (Al Boraq)
The high-speed rail link has transformed the Tangier to Casablanca journey from a grueling five-hour bus ride into a breezy 130-minute train trip. This is the flagship route. Trains depart almost every hour. A second-class ticket will run you about 149 MAD ($15 USD), while first class hovers around 299 MAD ($30 USD). If you are flying into Mohammed V International Airport, you will need to take a local train to Casa Voyageurs first. Grab the specifics from our Casablanca Airport to Train Station: 2026 Transfer Guide. Ready to ride? You can book Morocco train tickets for the Casablanca to Tangier route today.
Fes to Marrakech (Al Atlas)
This is a long haul. The journey takes about 6.5 hours on the conventional Al Atlas train. It is a beautiful ride, transitioning from the green hills of the north down to the arid, palm-dotted plains of the south. Because of the duration, I strongly recommend a first-class ticket here. Expect to pay around 380 MAD ($38 USD) for first class. You can review the full timetable in our Fes to Marrakech Train: 2026 Schedule & First Class Tips guide. Book Morocco train tickets for the Fes to Marrakech journey here.
Marrakech to Rabat (Al Atlas)
Heading to the capital? The Marrakech to Rabat Train takes just under 4 hours. It is a highly popular route for business travelers and tourists alike. Tickets are incredibly affordable, generally starting at 180 MAD ($18 USD) in second class. The coastal views as you approach Rabat are fantastic. Book Morocco train tickets for Rabat now.
Fes to Rabat (Al Atlas)
If you are exploring the imperial cities, the Fes to Rabat Train is your best friend. The journey takes roughly 2 hours and 50 minutes. First class tickets usually cost around 160 MAD ($16 USD). It is a smooth, easy transfer between two of Morocco's most fascinating historical hubs.
Luggage Allowances and Onboard Amenities
When you book Morocco train tickets, you might wonder what you can actually bring on board. Unlike European budget airlines, ONCF is incredibly generous with luggage. There are no strict weight limits or extra fees for large suitcases. However, you are responsible for carrying and stowing your own bags.
On the Al Boraq, there are large luggage racks at the end of each carriage, plus overhead bins for smaller backpacks. On the Al Atlas trains, luggage space can be a bit more chaotic, which is another reason why First Class is advantageous—there is simply more room to keep your belongings secure. Both train types feature clean restrooms, and the Al Boraq boasts a dedicated cafeteria car where you can purchase coffee, mint tea, and light snacks during your journey.
Pro Tips for Navigating Moroccan Train Stations in 2026
Booking the ticket is only half the battle. Navigating the stations requires a bit of street smarts. Here are my top rules for rail travel in Morocco.
- Know your Casablanca stations. Casablanca has two main stations: Casa Voyageurs and Casa Port. Al Boraq high-speed trains ONLY depart from Casa Voyageurs. Casa Port is primarily for local commuter trains. Do not show up at the wrong one.
- Bring your own snacks. While the Al Boraq has a decent café car serving coffee and light sandwiches, the trolley service on Al Atlas trains can be sporadic. Buy some fresh pastries and bottled water before you board.
- Guard your luggage space. Board the train as soon as the doors open. Luggage racks at the ends of the carriages fill up remarkably fast. If you are late, you will be wrestling your suitcase into an overhead bin.
- Download your ticket offline. Cell service can drop out in the rural stretches between Fes and Marrakech. Always have a saved PDF or screenshot of your ticket QR code ready for the conductor. When you book Morocco train tickets via moroccotrain.com, we email you a mobile-ready PDF.
- Ignore the station "helpers." When you arrive at major stations, particularly in Marrakech, unofficial porters might grab your bag and demand a heavy tip. Keep a firm grip on your luggage. For more advice on handling arrivals, read our guide on Marrakech Railway Station: 5 Tips to Skip Queues & Taxi Scams.
Frequently Asked Questions
How do I book Morocco train tickets online?
You can book Morocco train tickets online through the official ONCF website or via specialized agencies like moroccotrain.com to avoid frequent international payment failures. Many travelers prefer third-party platforms because they accept all major foreign credit cards and provide English-language support.
Why does the ONCF website reject my credit card?
The ONCF website rejects over 70% of foreign credit cards because its domestic payment gateway is primarily configured for Moroccan bank cards and specific local 3D Secure protocols. This often results in vague error messages for users from the US, UK, Canada, and Europe during the final checkout phase.
How far in advance can I book Morocco train tickets?
Tickets for Moroccan trains typically become available for purchase between 30 to 90 days before the scheduled departure date, depending on the specific route and season. When you book Morocco train tickets early, you secure better availability for the Al Boraq high-speed line.
How much does the Al Boraq high-speed train cost?
A second-class ticket on the Al Boraq high-speed train from Casablanca to Tangier typically costs approximately 149 MAD, which is roughly $15 USD. Prices may vary based on how far in advance you book and the time of day you choose to travel.
Is there a high-speed train from Casablanca to Marrakech?
Currently, the high-speed Al Boraq line operates between Tangier and Casablanca, while the journey from Casablanca to Marrakech is serviced by the efficient Al Atlas conventional trains. Plans for extending the high-speed rail to Marrakech are underway as part of Morocco's infrastructure expansion.
Do I need to print my Moroccan train ticket?
No, you do not need to print your ticket because digital e-tickets featuring a valid QR code are fully accepted by conductors on your smartphone. Simply ensure your device is charged so you can display the PDF or mobile ticket during boarding and ticket inspections.


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