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 Gare de Ben Guerirtrain
- Take the train from Ben Guerir to Rabat Villetrain
5h 14mMAD 158–324Bus, train
- Take the bus from Safi to Farbus
- Take the train from Casablanca Port to Rabat Villetrain
5h 56mMAD 188–290Drive 328 km
- Drive from Safi to Rabatcar 328 km
3h 11mMAD 481–694Rideshare, bus
- Take the rideshare from Safi to El Jadida
- Take the bus from El Jadida to Farbus
- Take the bus from Casablanca Far to Rabatbus
7hMAD 260–375
Safi to Rabat by train
Questions & Answers
The cheapest way to get from Safi to Rabat is to bus and train which costs MAD 180 - MAD 290 and takes 5h 56m.
The fastest way to get from Safi to Rabat is to drive which takes 3h 11m and costs MAD 480 - MAD 700.
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 Ben Guerir. The journey, including transfers, takes approximately 5h 14m.
The distance between Safi and Rabat is 402 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 14m and costs MAD 150 - MAD 330.
It takes approximately 5h 14m to get from Safi to Rabat, including transfers.
Safi to Rabat train services, operated by Moroccan Railways (ONCF), depart from Gare ONCF de Safi station.
Safi to Rabat train services, operated by Moroccan Railways (ONCF), arrive at Gare de Ben Guerir 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 1751+ hotels available in Rabat.
What companies run services between Safi, Morocco and Rabat, Morocco?
You can take a train from Gare ONCF de Safi to Rabat Ville via Ben Guerir in around 5h 14m.
- Phone
- 2255
- communication.digitale@oncf.ma
- Website
- oncf.ma
Train from Gare ONCF de Safi to Gare de Ben Guerir
- Ave. Duration
- 1h 34m
- Frequency
- Twice daily
- Estimated price
- MAD 55–120
- Schedules at
- oncf-voyages.ma
- Book at
- oncf.ma
- 2nd Class
- MAD 55–80
- 1st Class
- MAD 85–120
Train from Ben Guerir to Rabat Ville
- Ave. Duration
- 2h 52m
- Frequency
- Hourly
- Estimated price
- MAD 100–210
- Schedules at
- oncf-voyages.ma
- Book at
- oncf.ma
- 2nd Class
- MAD 100–150
- 1st Class
- MAD 150–210
Train from Casablanca Port to Rabat Ville
- Ave. Duration
- 1h 19m
- Frequency
- Hourly
- Estimated price
- MAD 35–75
- Schedules at
- oncf-voyages.ma
- Book at
- oncf.ma
- 2nd Class
- MAD 35–50
- 1st Class
- MAD 50–75
- Phone
- 0 800 0900 30
- ctmweb.ma@gmail.com
- Website
- ctm.ma
Bus from Safi to Far
- Ave. Duration
- 4h 10m
- Frequency
- 3 times a day
- Estimated price
- MAD 150–220
- Schedules at
- ctm.ma
- Confort
- MAD 150–170
Bus from El Jadida to Far
- Ave. Duration
- 1h 55m
- Frequency
- 3 times a day
- Estimated price
- MAD 60–90
- Schedules at
- ctm.ma
Bus from Casablanca Far to Rabat
- Ave. Duration
- 1h 15m
- Frequency
- Every 4 hours
- Estimated price
- MAD 55–80
- 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
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 How to get from JFK to New York City, Travelling to the US: What do I need to know?, and 5 delightfully under-the-radar French towns you need to visit - to help you get the most out of your next trip.











