There are 5 ways to get from Madrid to Safi by car, car ferry, plane, train, or bus
Select an option below to see step-by-step directions and to compare ticket prices and travel times in Rome2Rio's travel planner.
Drive, car ferry
best- Drive from Madrid to Tarifa
- Take the car ferry from Tarifa to Port of Tangier Ville
- Drive from Port of Tangier Ville to Safi
14h 1mMAD 2,272–3,247Fly to Marrakech, train
cheapest- Fly from Adolfo Suárez Madrid–Barajas Airport (MAD) to Marrakech (RAK)MAD - RAK
- Take the train from Marrakech to Ben Guerir
- Take the train from Gare de Ben Guerir to Gare ONCF de Safi
9h 2mMAD 547–1,868Fly to Mohammed V International Airport, train
- Fly from Adolfo Suárez Madrid–Barajas Airport (MAD) to Mohammed V International Airport (CMN)MAD - CMN
- Take the train from Gare Oasis to Ben Guerir
- Take the train from Gare de Ben Guerir to Gare ONCF de Safi
10h 38mMAD 710–2,013Fly to Agadir–Al Massira Airport, bus
- Fly from Adolfo Suárez Madrid–Barajas Airport (MAD) to Agadir–Al Massira Airport (AGA)MAD - AGA
- Take the bus from Agadir 3 - Agadir Airport to Essaouira 1 - Bab El Mechouar
- Take the bus from Essaouira to Safi
13h 27mMAD 993–2,948Fly to Rabat-Salé, train
- Fly from Adolfo Suárez Madrid–Barajas Airport (MAD) to Rabat-Salé (RBA)MAD - RBA
- Take the train from Rabat Agdal to Ben Guerir
- Take the train from Gare de Ben Guerir to Gare ONCF de Safi
11h 3mMAD 690–2,483
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 500 - MAD 1,900 and takes 9h 2m.
The fastest way to get from Madrid to Safi is to fly and train which takes 9h 2m and costs MAD 500 - MAD 1,900.
The distance between Madrid and Safi is 1262 km.
It takes approximately 14h 1m to get from Madrid to Safi, including transfers.
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 drive to Tarifa, take the car ferry to Port of Tangier Ville, then drive to Safi. Alternatively, 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.
- Website
- ryanair.com
Flights from Adolfo Suárez Madrid–Barajas Airport to Marrakech
- Ave. Duration
- 2h 5m
- When
- Every day
- Estimated price
- MAD 360–1,400
Flights from Adolfo Suárez Madrid–Barajas Airport to Marrakech via Fes
- Ave. Duration
- 4h 15m
- When
- Sunday
- Estimated price
- MAD 360–1,400
Flights from Adolfo Suárez Madrid–Barajas Airport to Agadir–Al Massira Airport
- Ave. Duration
- 2h 15m
- When
- Monday and Saturday
- Estimated price
- MAD 550–3,600
Flights from Adolfo Suárez Madrid–Barajas Airport to Agadir–Al Massira Airport via Lisboa
- Ave. Duration
- 4h 20m
- When
- Sunday
- Estimated price
- MAD 550–3,600
Flights from Adolfo Suárez Madrid–Barajas Airport to Rabat-Salé
- Ave. Duration
- 1h 40m
- When
- Every day
- Estimated price
- MAD 470–1,800
- 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 Marrakech via Mohammed V International Airport
- Ave. Duration
- 4h 6m
- When
- Every day
- Estimated price
- MAD 650–2,000
Flights from Adolfo Suárez Madrid–Barajas Airport to Mohammed V International Airport
- Ave. Duration
- 1h 48m
- When
- Every day
- Estimated price
- MAD 500–2,100
Flights from Adolfo Suárez Madrid–Barajas Airport to Agadir–Al Massira Airport via Mohammed V International Airport
- Ave. Duration
- 4h 40m
- When
- Every day
- Estimated price
- MAD 900–3,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 50m
- When
- Every day
- Estimated price
- MAD 500–2,100
Flights from Adolfo Suárez Madrid–Barajas Airport to Agadir–Al Massira Airport via Mohammed V International Airport
- Ave. Duration
- 4h 30m
- When
- Every day
- Estimated price
- MAD 900–3,000
- Website
- aireuropa.com
Flights from Adolfo Suárez Madrid–Barajas Airport to Marrakech
- Ave. Duration
- 2h 5m
- When
- Wednesday and Sunday
- Estimated price
- MAD 290–1,300
- Website
- airarabia.com
Flights from Adolfo Suárez Madrid–Barajas Airport to Mohammed V International Airport
- Ave. Duration
- 1h 50m
- When
- Tuesday, Thursday, Friday, and Sunday
- Estimated price
- MAD 500–1,200
- Phone
- 2255
- communication.digitale@oncf.ma
- Website
- oncf-voyages.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-voyages.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-voyages.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-voyages.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-voyages.ma
- 2nd Class
- MAD 100–150
- 1st Class
- MAD 150–210
- info@souktosurf.com
- Website
- souktosurf.com
Bus from Agadir 3 - Agadir Airport to Essaouira 1 - Bab El Mechouar
- Ave. Duration
- 4h 25m
- Frequency
- Once daily
- Estimated price
- MAD 210–240
- Schedules at
- souktosurf.com
- Phone
- 0 800 0900 30
- ctmweb.ma@gmail.com
- Website
- ctm.ma
Bus from Essaouira to Safi
- Ave. Duration
- 2h 25m
- Frequency
- 4 times a day
- Estimated price
- MAD 55–80
- Schedules at
- ctm.ma
- Comfort
- MAD 55–80
- Phone
- +34 912 66 02 15
- reservas@balearia.com
- Website
- balearia.com
Car ferry from Tarifa to Port of Tangier Ville
- Ave. Duration
- 1h
- Frequency
- 5 times a day
- Estimated price
- MAD 380–470
- Website
- https://www.balearia.com/en
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 4 stunningly beautiful Philippines islands you need to visit, How to get from Southend Airport into central London, and Train travel in Spain: A guide to Renfe - to help you get the most out of your next trip.



















