background

Casablanca to Rabat Trains

12
Nov
Return

Departure Schedule

Morning departures

Fastest trip59 min
Longest trip2 hrs 59 min
Earliest06:10
Latest11:53
Departures13

Afternoon departures

Fastest trip1 hrs 2 min
Longest trip2 hrs 26 min
Earliest12:28
Latest17:53
Departures11

Evening departures

Fastest trip1 hrs 2 min
Longest trip2 hrs 7 min
Earliest18:28
Latest20:53
Departures6

Night departures

Fastest trip1 hrs 4 min
Longest trip1 hrs 8 min
Earliest21:07
Latest22:53
Departures3

Travelling from Casablanca to Rabat by Train

The fastest and easiest way to travel from Casablanca to Rabat is by train, with journeys from about 45 minutes to 1 hour. This guide is for anyone planning the trip, from business travelers commuting between Morocco's economic hub and its capital city to tourists building a Morocco itinerary, and it covers schedules, stations, ticket prices and the main attractions so you can choose the best option and make the most of your time. Trains are run by ONCF, Morocco's national railway, and two types of service operate on this route. Al Boraq, Africa's first high-speed train, launched on 15 November 2018 and links Casablanca with Rabat on its way north to Kenitra and Tangier, with departures from Casa Voyageurs every hour from 06:00 to 21:00 (from 07:00 on Sundays) and a stop at Rabat Agdal. TNR shuttle trains run frequently from Casa Port train station, located in the city center near the port, and from Casa Voyageurs, and stop at both Rabat Agdal and Rabat Ville train station, taking about 55 minutes to 1 hour. Shuttle train tickets cost approximately 35 Dh per person, while Al Boraq costs a bit more but offers a faster ride with reserved seats, Wi-Fi and a café car. The last train from Casablanca to Rabat departs around 10 PM, so if you plan a night out, check the timetable or arrange other transport back. Book Al Boraq in advance on weekends, holidays and during the summer months, while shuttle tickets can usually be bought at the station on the day. Cash is often preferred for small purchases in Morocco, especially for local transport, and local taxis usually prefer payment in dirhams (MAD).

Casablanca to Rabat trains Information

88 km
Rabat
59 m
Shortest travel time:
$26
Lowest ticket cost:
33
Avg. daily departures:
06:10
Earliest departure:
22:53
Latest departure:

When you visit Rabat, the political capital of Morocco, you find a city that is a lot smaller, with around 1 million inhabitants, and is often viewed as safer and less overwhelming than Casablanca. Rabat is a UNESCO World Heritage Site known for its royal history, and its historic medina is easy to explore on foot. The Kasbah of the Udayas, also a UNESCO World Heritage Site, offers beautiful views over the Atlantic Ocean and a peaceful Andalusian garden. The Hassan Tower stands 44 meters tall and dates back to the 12th century, and next to it lies the Mausoleum of King Mohammed V, one of the city's most interesting historical sites. Chellah features Roman ruins and a medieval necropolis, showing the ancient history of the surrounding area, and you can also see the gates of the Royal Palace, where the king's official residence is located. Rabat's green parks, quiet streets and calm cafés make it an enjoyable destination, but nightlife in Rabat is generally quieter, with limited options compared to the vibrant scene in Casablanca. Public transportation in Rabat includes the Rabat-Salé Tramway, which connects major landmarks and gives easy access to the main attractions from Rabat Ville train station. At the moment, the train is the best way to travel between the two cities: driving takes about 1 hour for roughly 90 km but Casablanca traffic can add a lot more time, and buses are slower. A high-speed extension from Kenitra to Marrakech via Rabat and Casablanca has been under construction since April 2025 and will make rail travel even faster.

Popular questions about trains from Casablanca to Rabat

Extensive Network

One platform, 34+ destinations, 700+ routes around the globe.

Convenient Booking

We speak your language and offer over 20 payment methods.

Excellent Rating

Read authentic Rail Ninja reviews and see what our travelers say about us.

Flexible Planning

You can conveniently book train tickets for up to a year in advance!

Real Human Support

Need a hand? Contact our customer support before or during your trip.