

The fastest trip from Marrakesh to Rabat is the direct ONCF train, with a journey duration of about 3 hours 30 minutes. If you are planning your next trip between Marrakesh and Rabat, this guide compares all available options, from train schedules and ticket prices to buses, flights and driving, so you can pick the best transport for your budget. Moroccan Railways operates hourly trains from Marrakech station in the Guéliz district, with about 105 weekly train departures, and every train stops at both Rabat Agdal and Rabat Ville. Train tickets cost between €12 and €25 (about MAD 130 to MAD 270) per adult, and ticket prices vary depending on the class, the day of the week and how early you book. Second class offers the lowest price, while first class gives travelers a reserved seat, more legroom and a quieter carriage. Availability depends on popularity: Friday and Sunday afternoons, summer holidays and the days around Ramadan fill up fast, so the cheapest time to travel is usually midweek, on a Monday, Wednesday or Thursday morning. When searching for tickets, compare schedules and frequency for your date and book in advance to secure your seat.
Several factors, like budget, comfort and travel time, decide which option suits you best. A direct bus is the cheapest alternative: a Rabat bus ticket costs between €14 and €28, and bus companies such as CTM and Supratours run daily departures. Bus travel takes about 4h 20m, while long-distance coaches with more stops take about 4.5 to 5.5 hours, so the duration varies by provider and service. If you prefer to fly, note that no airline offers direct flights from Marrakech to Rabat. Royal Air Maroc offers 164 weekly flights on this route, all with a connection, usually via Casablanca's Mohammed V airport. The shortest flight time is 4 hours 10 minutes, the cheapest one-way flight costs €155 and the cheapest round-trip flight costs €321, which makes flying slower and more expensive than the train. If you drive your own car, the road distance is about 324 km, and the trip takes about 3.5 to 4 hours on the motorway. Private car transfers take about the same time, 3.5 to 4 hours, and offer door-to-door service for groups and families. A high-speed line extending Al Boraq to Marrakesh is under construction and will make the train even faster in the future.
The direct train is the fastest journey, with a duration of about 3 hours 30 minutes. Driving takes about 3.5 to 4 hours, and flights take at least 4 hours 10 minutes with a connection.
Moroccan Railways operates hourly trains, with about 105 departures per week from Marrakech to Rabat.
Train tickets cost between €12 and €25 per adult. A bus ticket costs between €14 and €28.
Prices depend on several factors, including class, popularity, availability and how early you book. Weekends and holidays usually cost more.
Midweek trains on a Monday, Wednesday or Thursday are usually less crowded and easier to book at lower prices than Friday and Sunday departures.
During Ramadan, schedules can change and trains around the start and end of the holiday fill up quickly. Check the timetable and book early.
Yes. A direct bus takes about 4h 20m, and long-distance coaches with more stops take about 4.5 to 5.5 hours.
CTM and Supratours are the main companies. Each provider sets its own schedules and fares within a range of about €14 to €28.
The road distance is about 324 km. Driving your own car or taking a private car transfer takes about 3.5 to 4 hours.
Rabat Ville is best for the city center and the medina. Rabat Agdal is better for the Agdal district and Al Boraq connections. Choose the station closest to your hotel room.
Marrakech is a busy tourist hub with vibrant souks, street food and street performers. Rabat is a calm capital with green parks, fresh seafood and fixed-price shops.
In Marrakech, visit the souks and Djemaa el-Fna square. In Rabat, explore the Andalusian gardens, green parks and the Mausoleum of Mohammed V.
From Rabat, Al Boraq high-speed trains run north to Kenitra and Tangier, and regular trains connect to Fes, Meknes and Casablanca.
Compare all available options, check schedules and availability for your date, and book in advance. Morocco's rail network is one of the most modern in Africa and in the world for its size, so the train is usually the best choice.
One platform, 34+ destinations, 700+ routes around the globe.
We speak your language and offer over 20 payment methods.
Read authentic Rail Ninja reviews and see what our travelers say about us.
You can conveniently book train tickets for up to a year in advance!
Need a hand? Contact our customer support before or during your trip.