There are 3 ways to get from Madrid to Safi by plane or train
Select an option below to see step-by-step directions and to compare ticket prices and travel times in Rome2Rio's travel planner.
Fly to Marrakech, train
best- Fly from Adolfo Suárez Madrid–Barajas Airport (MAD) to Marrakech (RAK)plane MAD - RAK
- Take the train from Marrakech to Ben Guerirtrain
- Take the train from Gare de Ben Guerir to Gare ONCF de Safitrain
8h 7mMAD 567–1,864Fly to Mohammed V International Airport, train
- Fly from Adolfo Suárez Madrid–Barajas Airport (MAD) to Mohammed V International Airport (CMN)plane MAD - CMN
- Take the train from Gare Oasis to Ben Guerirtrain
- Take the train from Gare de Ben Guerir to Gare ONCF de Safitrain
8h 43mMAD 750–2,409Fly to Rabat-Salé, train
- Fly from Adolfo Suárez Madrid–Barajas Airport (MAD) to Rabat-Salé (RBA)plane MAD - RBA
- Take the train from Rabat Agdal to Ben Guerirtrain
- Take the train from Gare de Ben Guerir to Gare ONCF de Safitrain
9h 3mMAD 640–2,579
Adolfo Suárez Madrid–Barajas Airport (MAD) to Marrakech (RAK) flights
Questions & Answers
The cheapest way to get from Madrid to Safi is to fly and train which costs MAD 550 - MAD 1,900 and takes 8h 7m.
The fastest way to get from Madrid to Safi is to fly and train which takes 8h 7m and costs MAD 550 - MAD 1,900.
The distance between Madrid and Safi is 1300 km.
It takes approximately 8h 7m to get from Madrid to Safi, including transfers.
Safi is 1h behind Madrid. It is currently 6:05 AM in Madrid and 5:05 AM in Safi.
There are 90+ hotels available in Safi.
What companies run services between Madrid, Spain and Safi, Morocco?
There is no direct connection from Madrid to Safi. However, you can take the train to Madrid-Aeropuerto T4, walk to Adolfo Suárez Madrid–Barajas Airport (MAD) airport, fly to Marrakech (RAK), walk to Marrakech Airport, take the line 19 bus to Jardin Menara, take the line 19 bus to Gare Routière de ONCF, walk to Marrakech, take the train to Ben Guerir, then take the train to Gare ONCF de Safi. Alternatively, you can take the train to Madrid-Aeropuerto T4, walk to Adolfo Suárez Madrid–Barajas Airport (MAD) airport, fly to Mohammed V International Airport (CMN), walk to Mohammed V International Airport, take the train to Oasis, take the train to Ben Guerir, then take the train to Gare ONCF de Safi.
- Website
- ryanair.com
Flights from Adolfo Suárez Madrid–Barajas Airport to Marrakech
- Ave. Duration
- 1h 5m
- When
- Every day
- Estimated price
- MAD 400–1,500
Flights from Adolfo Suárez Madrid–Barajas Airport to Marrakech via Fes
- Ave. Duration
- 2h 35m
- When
- Saturday and Sunday
- Estimated price
- MAD 400–1,500
Flights from Adolfo Suárez Madrid–Barajas Airport to Rabat-Salé
- Ave. Duration
- 40 min
- When
- Every day
- Estimated price
- MAD 340–2,000
- Website
- iberia.com
Flights from Adolfo Suárez Madrid–Barajas Airport to Marrakech
- Ave. Duration
- 2h
- When
- Every day
- Estimated price
- MAD 500–1,100
Flights from Adolfo Suárez Madrid–Barajas Airport to Mohammed V International Airport
- Ave. Duration
- 1h 48m
- When
- Every day
- Estimated price
- MAD 600–2,500
- Website
- royalairmaroc.com
Flights from Adolfo Suárez Madrid–Barajas Airport to Marrakech
- Ave. Duration
- 2h
- When
- Every day
- Estimated price
- MAD 500–1,100
Flights from Adolfo Suárez Madrid–Barajas Airport to Mohammed V International Airport
- Ave. Duration
- 1h 45m
- When
- Every day
- Estimated price
- MAD 900–2,500
- Website
- aireuropa.com
Flights from Adolfo Suárez Madrid–Barajas Airport to Marrakech
- Ave. Duration
- 2h 5m
- When
- Wednesday and Sunday
- Estimated price
- MAD 300–1,400
- Website
- airarabia.com
Flights from Adolfo Suárez Madrid–Barajas Airport to Mohammed V International Airport
- Ave. Duration
- 50 min
- When
- Thursday, Friday, and Sunday
- Estimated price
- MAD 550–1,600
- Phone
- 2255
- communication.digitale@oncf.ma
- Website
- oncf.ma
Train from Marrakech to Ben Guerir
- Ave. Duration
- 45 min
- Frequency
- Hourly
- Estimated price
- MAD 30–60
- Schedules at
- oncf-voyages.ma
- Book at
- oncf.ma
- 2nd Class
- MAD 30–45
- 1st Class
- MAD 40–60
Train from Gare de Ben Guerir to Gare ONCF de Safi
- Ave. Duration
- 2h 2m
- 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 Gare Oasis to Ben Guerir
- Ave. Duration
- 1h 47m
- Frequency
- Hourly
- Estimated price
- MAD 65–140
- Schedules at
- oncf-voyages.ma
- Book at
- oncf.ma
- 2nd Class
- MAD 65–95
- 1st Class
- MAD 100–140
Train from Rabat Agdal to Ben Guerir
- Ave. Duration
- 2h 51m
- 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
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 Italian Lakes: Getting around by train, French strikes 2018: What are my alternative transport options?, and How to get from London City Airport into central London - to help you get the most out of your next trip.






