
Traveling between Rabat, Morocco’s political capital, and Marrakech, the country’s vibrant tourist hub, is one of the most common journeys for locals and visitors alike. The most convenient, comfortable, and affordable way to make this trip is by train with ONCF, Morocco’s national railway operator. Whether you are traveling for business, leisure, or adventure, the train is the best choice compared to buses, flights, or rental cars.
In this guide, we cover train schedules, ticket prices, travel time, and how to book your tickets online to make your journey smooth and stress-free.
Why Choose the Train from Rabat to Marrakech?
- Direct and Frequent Service – Trains run multiple times daily, ensuring flexibility.
- Comfortable Travel – Spacious seating, air-conditioned carriages, and first-class options.
- Affordable Prices – Tickets start from around 100 MAD, making it budget-friendly.
- Time-Saving – Avoid the hassle of airports or long bus rides.
- Eco-Friendly – Trains are more sustainable than flying or driving.
Rabat to Marrakech Train Duration
The journey by train takes approximately 3 hours 30 minutes depending on the departure time and type of service (regular train vs. high-speed connection partway). This makes it one of the quickest and most reliable options compared to buses (5–6 hours) or driving.
Train Schedule
Trains from Rabat Ville Station and Rabat Agdal Station to Marrakech Station run frequently throughout the day.
- First departure: around 6:00 AM
- Last departure: around 9:00 PM
- Frequency: roughly every 2 hours
-Always check the latest schedule before traveling, as times may change.
Ticket Prices

- Second Class: from 100 MAD – 140 MAD
- First Class: from 160 MAD – 220 MAD
Tip: Booking in advance often gives you access to cheaper fares.
How to Book Rabat to Marrakech Train Tickets Online
Booking your ticket in advance is highly recommended, especially during weekends and peak tourist seasons. You can:
- Book online via the official ONCF platform.
- Use a trusted travel partner like our website, where you can easily secure your tickets in English without hassle.
- Buy at the station, but tickets may sell out during busy times.
Travel Tips for a Smooth Journey
- Arrive at the station at least 15–20 minutes before departure.
- Keep your ticket or mobile confirmation handy for inspection.
- If you want extra comfort, choose First Class for reserved seating.
- Marrakech station is centrally located, making it easy to reach hotels and attractions.
Final Thoughts
The train from Rabat to Marrakech is without doubt the best way to travel between the two cities. It combines speed, comfort, and affordability, making it the preferred option for both tourists and locals. Book your ticket online in advance and enjoy a stress-free ride through Morocco’s diverse landscapes
- Marrakech to Casablanca Airport Train – Easy Airport Transfers
- How to Get from Casablanca Airport to Marrakech by Train
- Rabat to Marrakech Train – Best Way to Travel Between Cities
- Casablanca to Marrakech by Train – Timetable, Prices & Booking Guide
- Marrakech to Fes by Train – Schedules, Duration, and How to Book
