Morocco train tickets online, ONCF booking, Al Boraq high-speed train, Al Atlas trains, Moroccan rail network, Tangier to Casablanca trainGeneral11 min read

Morocco Train Tickets Online: 2026 Prices & Payment Fix

Key Takeaway: A first-class ticket on the Al Boraq high-speed train from Tangier to Casablanca costs around 320 MAD ($32) and takes exactly 2 hours and 10 minutes. Foreign credit cards frequently fail on the official state railway site, leaving travelers stranded at checkout. Skip the payment errors and book Morocco train tickets online directly through moroccotrain.com for guaranteed reservations.

Securing Morocco train tickets online is the first step to exploring the country via its highly efficient rail network. Sitting in an air-conditioned cabin traveling at 320 km/h is a great way to travel, but understanding the 2026 booking process, prices, and common payment problems is essential before your trip. The frustrating reality is that while the trains are excellent, the official booking system routinely blocks foreign credit cards without warning. Many tourists face this exact hurdle every day when trying to finalize their Morocco train tickets online.

You might think buying a ticket is straightforward. Unfortunately, it rarely is. The Moroccan rail network (ONCF) operates two main types of trains, and securing a seat on either requires knowing the specific rules of their digital ecosystem. Let's break down exactly how to navigate the process of getting your Morocco train tickets online safely and efficiently.

Quick Overview: Morocco Train Tickets Online in 2026

Before looking at specific routes, you need to understand the ground rules. Moroccan trains do not operate like European rail networks where you can simply hop on any carriage at the last minute. Here is what you must know for 2026 when searching for Morocco train tickets online:

  • Advance booking is mandatory for high-speed routes. Al Boraq trains regularly sell out 48 hours before departure.
  • First class is highly affordable. The upgrade usually costs less than $12 USD. It gives you a guaranteed assigned seat and significant legroom.
  • Foreign cards fail constantly. The official ONCF payment gateway rejects most North American and European credit cards due to strict 3D Secure protocols, making it difficult to buy Morocco train tickets online directly.
  • Dynamic pricing is live. Fares fluctuate based on demand. Booking early saves you up to 30%.

If you want to understand how these pieces fit into your larger itinerary, reviewing the Major Train Routes in Morocco will give you a solid geographic foundation before you purchase your Morocco train tickets online.

Train Classes and Prices: What You Actually Pay in 2026

The Moroccan rail system is split into the Al Boraq (high-speed) and the Al Atlas (traditional intercity). They price their tickets differently based on speed and class.

The Al Boraq High-Speed Experience

The Al Boraq cuts the journey from the north coast to the economic capital by more than half. The carriages are double-decker TGVs that travel quickly down the Atlantic coast. A standard first-class ticket from Tangier to Casablanca on the Al Boraq costs 320 MAD ($32), making it one of the most cost-effective high-speed rail options available globally. Travelers often find the process of purchasing Morocco train tickets online for the TGV far more convenient than waiting in line at the station.

Second class is also a viable option if you are on a strict budget. The seats recline adequately, and the legroom is spacious compared to standard airline seating. If you are taking the Tangier to Casablanca Train, here is what you can expect to pay when you book your Morocco train tickets online.

2026 Al Boraq High-Speed Fares (Estimated Averages)
Route Duration 2nd Class Price 1st Class Price Action
Tangier to Casablanca 2h 10m 220 MAD ($22) 320 MAD ($32) Book Now
Tangier to Rabat 1h 20m 170 MAD ($17) 240 MAD ($24) Book Now
Rabat to Casablanca 55m 60 MAD ($6) 90 MAD ($9) Book Now

To secure these rates without fighting a glitchy checkout screen, check the latest prices on moroccotrain.com and get your Morocco train tickets online in minutes.

The Al Atlas Intercity Trains

These are the classic trains connecting the imperial cities, running at a respectable 160 km/h. While they lack the high speeds of the Al Boraq, they are reliable and offer scenic views of the Moroccan landscape. Taking the Marrakech to Rabat Train is a popular choice for travelers moving between key historical sites, and getting these Morocco rail tickets online ahead of time is highly recommended.

First class on Al Atlas is highly recommended. Second class compartments seat six people and do not guarantee you will sit with your travel partner. First class seats are assigned, and the upgrade is inexpensive when you buy your Morocco train tickets online.

2026 Al Atlas Intercity Fares (Estimated Averages)
Route Duration 2nd Class Price 1st Class Price Action
Marrakech to Casablanca 2h 40m 130 MAD ($13) 180 MAD ($18) Book Now
Casablanca to Fes 3h 55m 140 MAD ($14) 195 MAD ($19) Book Now
Fes to Marrakech 6h 40m 250 MAD ($25) 340 MAD ($34) Book Now

Don't risk your preferred departure time selling out. Book at moroccotrain.com to lock in your Al Atlas seats early and secure your Morocco train tickets online today.

The Notorious Payment Problem (And How to Fix It)

You enter your Visa or Mastercard details on the official ONCF website, hit submit, and get a generic error message in French. Your bank says no charge was attempted. The website says your bank declined it. You are caught in a frustrating loop while trying to obtain your Morocco train tickets online.

Why does this happen? The issue lies with the Moroccan payment gateway, CMI (Centre Monétique Interbancaire). The Moroccan state railway's payment gateway strictly requires a specific 3D Secure authentication protocol that over 70% of US and UK credit cards fail to process. According to The Man in Seat 61, this has been a persistent headache for international tourists trying to purchase Morocco train tickets online for years.

You have two choices. You can wait until you arrive in Morocco and hope the Casablanca to Marrakech Train still has seats available at the station kiosk. Or, you can bypass the official site entirely to get your Morocco train tickets online from abroad.

Using a dedicated booking service solves this instantly. If you want to Book ONCF Morocco Train Tickets Online | Avoid Payment Errors, using moroccotrain.com routes your payment through an international gateway that actually accepts foreign cards. You get the exact same digital ticket, delivered straight to your email.

Step-by-Step: How to Buy Morocco Train Tickets Online

If you want to ensure a smooth booking process before you arrive in North Africa, following a clear procedure is vital. Buying Morocco train tickets online doesn't have to be stressful if you use the right platform.

  1. Select your route and date: Decide whether you need the high-speed Al Boraq or the standard Al Atlas. Remember that schedules are typically released 30 to 60 days in advance.
  2. Choose your class: Select first class for assigned seating and extra luggage space, or second class for budget travel when you book your Morocco train tickets online.
  3. Enter passenger details: Ensure your name matches your passport, as conductors occasionally verify ID on longer routes.
  4. Use a reliable payment gateway: Instead of fighting the ONCF site, process your payment through moroccotrain.com to ensure your international Visa, Mastercard, or Amex is accepted for your Morocco train tickets online.
  5. Receive your e-ticket: Your ticket will be emailed to you as a PDF with a QR code. You do not need to print it; simply show it on your phone at the station gates and to the conductor.

Luggage Allowances and Station Facilities

When you book Morocco train tickets online, you might wonder about luggage restrictions. Fortunately, the Moroccan rail system is quite generous. There are no strict weight limits, but you must be able to carry your bags onto the train yourself. Large suitcases can be stored in the racks at the end of each carriage, while smaller bags fit above your seat.

Major stations like Casa Voyageurs, Tangier Ville, and Marrakech are modern hubs. They feature clean restrooms, fast-food outlets, cafes, and convenience stores where you can buy water and snacks before boarding. Arrive at least 30 minutes before departure to navigate the station, grab a coffee, and find your platform after you have secured your Morocco train tickets online.

7 Pro Tips for Morocco Train Travel in 2026

After traveling these routes extensively, certain patterns emerge. Keep these practical tips in mind for a smoother journey after ordering your Morocco train tickets online.

  1. Know your Casablanca stations. Casablanca has two main stations. Casa Port is only for local commuter trains to Rabat and the airport. Casa Voyageurs is the main hub for long-distance travel, including the Casablanca to Fes Train. Do not mix them up.
  2. The luggage racks fill up fast. Board the train the minute they announce it. If you wait until the last minute, you will struggle to find space for larger suitcases.
  3. Bring your own snacks on Al Atlas. While the high-speed Al Boraq has a dedicated cafeteria car, the traditional trains only have a rolling cart with limited options like instant coffee and biscuits.
  4. First class is always worth it. For a deeper dive into the exact seat dimensions and perks, read our Al Boraq High-Speed Train: First vs Second Class [2026] guide. The peace of mind and comfort justify the extra cost of your Morocco train tickets online.
  5. Book 30 days out for peak seasons. If you are traveling during Ramadan, Eid, or the busy spring tourist season (April-May), trains sell out weeks in advance. Book train tickets online early to secure your spot.
  6. Keep your ticket handy. Conductors will check your ticket shortly after departure, but you also need it to scan through the electronic gates to exit your arrival station. Do not discard it during the ride.
  7. Use the bathroom early. Train toilets in Morocco start off clean but can deteriorate on longer journeys like the 7-hour trip from Fes to Marrakech.

Frequently Asked Questions

How much does a Morocco train ticket cost?

A first-class Al Boraq ticket from Tangier to Casablanca costs approximately 320 MAD ($32 USD), while second-class fares start much lower depending on the route and booking time. Prices are subject to dynamic pricing, meaning early bookings for Morocco train tickets online are significantly cheaper than last-minute purchases.

Can I use a foreign credit card to buy Morocco train tickets online?

Foreign credit cards frequently fail on the official ONCF website due to strict 3D Secure protocols and international payment restrictions. Many travelers encounter checkout errors at the final stage, making third-party booking platforms a more reliable alternative for those looking to buy Morocco train tickets online.

How far in advance should I book Morocco train tickets?

You should book Morocco train tickets online at least 48 hours in advance, especially for high-speed Al Boraq routes which frequently sell out during peak times. Booking early also allows you to take advantage of dynamic pricing discounts of up to 30% off the standard fare.

What is the difference between Al Boraq and Al Atlas trains?

Al Boraq is a high-speed double-decker train reaching 320 km/h on the Tangier-Casablanca line, while Al Atlas refers to the traditional intercity network connecting cities like Marrakech and Fes. Al Boraq offers a significantly faster and more modern experience at a slightly higher price point when you book Morocco train tickets online.

Is first class worth it on Moroccan trains?

Yes, first class is highly recommended as the upgrade usually costs less than $12 USD and provides guaranteed assigned seating, extra legroom, and a quieter environment. It is particularly valuable on longer journeys between major cities for the added comfort and luggage space.

Do I need to print my Morocco train tickets?

No, you do not need to print your tickets as digital versions on your smartphone are widely accepted by ticket inspectors and station scanners. When you secure your Morocco train tickets online, ensure your device is charged and the QR code is clearly visible for scanning at the station gates before boarding.

FAQ

How much does a Morocco train ticket cost?

A first-class Al Boraq ticket from Tangier to Casablanca costs approximately 320 MAD ($32 USD), while second-class fares start much lower depending on the route and booking time. Prices are subject to dynamic pricing, meaning early bookings are significantly cheaper than last-minute purchases.

Can I use a foreign credit card to buy Morocco train tickets?

Foreign credit cards frequently fail on the official ONCF website due to strict 3D Secure protocols and international payment restrictions. Many travelers encounter checkout errors at the final stage, making third-party booking platforms a more reliable alternative for international tourists.

How far in advance should I book Morocco train tickets?

You should book Morocco train tickets at least 48 hours in advance, especially for high-speed Al Boraq routes which frequently sell out during peak times. Booking early also allows you to take advantage of dynamic pricing discounts of up to 30% off the standard fare.

What is the difference between Al Boraq and Al Atlas trains?

Al Boraq is a high-speed double-decker train reaching 320 km/h on the Tangier-Casablanca line, while Al Atlas refers to the traditional intercity network connecting cities like Marrakech and Fes. Al Boraq offers a significantly faster and more modern experience at a slightly higher price point.

Is first class worth it on Moroccan trains?

Yes, first class is highly recommended as the upgrade usually costs less than $12 USD and provides guaranteed assigned seating, extra legroom, and a quieter environment. It is particularly valuable on longer journeys between major cities for the added comfort and luggage space.

Do I need to print my Morocco train tickets?

No, you do not need to print your tickets as digital versions on your smartphone are widely accepted by ticket inspectors and station scanners. However, ensure your device is charged and the QR code is clearly visible for scanning at the station gates before boarding.

Tags:Morocco train tickets onlineONCF bookingAl Boraq high-speed trainAl Atlas trainsMoroccan rail networkTangier to Casablanca train