There are 4 ways to get from Safi to Rabat by train, bus, car, or rideshare
Select an option below to see step-by-step directions and to compare ticket prices and travel times in Rome2Rio's travel planner.
Train
best- Take the train from Gare ONCF de Safi to Casa-Voyageurstrain
- Take the train from Casablanca to Rabat Villetrain
5h 50mMAD 161–324Bus
- Take the bus from Safi to Farbus
- Take the bus from Casablanca Far to Rabatbus
6h 5mMAD 222–327Drive 328 km
- Drive from Safi to Rabatcar 328 km
3h 11mMAD 510–736Rideshare, train
- Take the rideshare from Safi to El Jadida
- Take the rideshare from El Jadida to Casablanca
- Take the train from Ain Sebaa to Rabat Villetrain
6h 2mMAD 283–428
Safi to Rabat by train
Comparing Your Travel Options
The cheapest way to get from Safi to Rabat is to train which costs MAD 160 - MAD 330 and takes 5h 50m.
The fastest way to get from Safi to Rabat is to drive which takes 3h 11m and costs MAD 500 - MAD 750.
No, there is no direct bus from Safi to Rabat. However, there are services departing from Safi and arriving at Rabat via Casablanca Far. The journey, including transfers, takes approximately 6h 5m.
No, there is no direct train from Safi to Rabat. However, there are services departing from Gare ONCF de Safi and arriving at Rabat Ville via Casablanca. The journey, including transfers, takes approximately 5h 50m.
The distance between Safi and Rabat is 397 km. The road distance is 328 km.
The best way to get from Safi to Rabat without a car is to train which takes 5h 50m and costs MAD 160 - MAD 330.
It takes approximately 5h 50m to get from Safi to Rabat, including transfers.
Safi to Rabat bus services, operated by CTM, depart from Safi station.
Safi to Rabat train services, operated by Moroccan Railways (ONCF), depart from Gare ONCF de Safi station.
The best way to get from Safi to Rabat is to train which takes 5h 50m and costs MAD 160 - MAD 330. Alternatively, you can bus, which costs MAD 220 - MAD 330 and takes 6h 5m.
What companies run services between Safi, Morocco and Rabat, Morocco?
You can take a train from Gare ONCF de Safi to Rabat Ville via Casablanca in around 5h 50m. Alternatively, you can take a bus from Safi to Rabat via Casablanca Far in around 6h 5m.
- Phone
- 2255
- [email protected]
- Website
- oncf-voyages.ma
Train from Gare ONCF de Safi to Casa-Voyageurs
- Ave. Duration
- 4h 18m
- Frequency
- Once daily
- Estimated price
- MAD 120–250
- Schedules at
- oncf-voyages.ma
- Book at
- oncf-voyages.ma
- 2nd Class
- MAD 120–180
- 1st Class
- MAD 180–250
Train from Casablanca to Rabat Ville
- Ave. Duration
- 57 min
- Frequency
- Hourly
- Estimated price
- MAD 35–75
- Schedules at
- oncf-voyages.ma
- Book at
- oncf-voyages.ma
- 2nd Class
- MAD 35–50
- 1st Class
- MAD 50–75
Train from Ain Sebaa to Rabat Ville
- Ave. Duration
- 1h 7m
- Frequency
- Hourly
- Estimated price
- MAD 30–65
- Schedules at
- oncf-voyages.ma
- Book at
- oncf-voyages.ma
- 2nd Class
- MAD 30–45
- 1st Class
- MAD 45–65
- Phone
- 0 800 0900 30
- [email protected]
- Website
- ctm.ma
Bus from Safi to Far
- Ave. Duration
- 3h 50m
- Frequency
- 4 times a day
- Estimated price
- MAD 160–240
- Schedules at
- ctm.ma
- Confort
- MAD 160–180
Bus from Casablanca Far to Rabat
- Ave. Duration
- 1h 15m
- Frequency
- Every 4 hours
- Estimated price
- MAD 60–90
- Schedules at
- ctm.ma
Rideshare from Safi to El Jadida
- Ave. Duration
- 1h 50m
- Frequency
- On demand
- Estimated price
- MAD 140–210
- Schedules at
- moroccocab.com
Rideshare from El Jadida to Casablanca
- Ave. Duration
- 1h 30m
- Frequency
- Hourly
- Estimated price
- MAD 100–150
- Schedules at
- moroccocab.com
Want to know more about travelling around the world?
Rome2Rio's Travel Guide series provide vital information for the global traveller. Read our range of informative guides on popular transport routes and companies - including Bali: What to do if Mount Agung erupts, Travelling to the US: What do I need to know?, and Travelling to the UK: What do I need to know? - to help you get the most out of your next trip.
Booking & Getting There
Safi to Rabat bus services, operated by CTM, arrive at Far station.
Safi to Rabat train services, operated by Moroccan Railways (ONCF), arrive at Casa-Voyageurs station.
Yes, the driving distance between Safi to Rabat is 328 km. It takes approximately 3h 11m to drive from Safi to Rabat.
There are 1802+ hotels available in Rabat.











