There are 5 ways to get from Madrid to Safi by plane, bus, 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 Essaouira, bus
best- Fly from Adolfo Suárez Madrid–Barajas Airport (MAD) to Essaouira (ESU)plane MAD - ESU
- Take the bus from Essaouira to Safibus
10h 54mMAD 618–4,005Fly to Marrakech, train
cheapest- 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
9h 5mMAD 507–2,545Fly 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 Oasis to Gare ONCF de Safitrain
10h 18mMAD 740–3,890Fly to Agadir–Al Massira Airport, bus
- Fly from Adolfo Suárez Madrid–Barajas Airport (MAD) to Agadir–Al Massira Airport (AGA)plane MAD - AGA
- Take the bus from Agadir 3 - Agadir Airport to Essaouira 1 - Bab El Mechouarbus
- Take the bus from Essaouira to Safibus
13h 32mMAD 818–4,395Fly 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
11h 5mMAD 770–4,460
Adolfo Suárez Madrid–Barajas Airport (MAD) to Essaouira (ESU) flights
Comparing Your Travel Options
The cheapest way to get from Madrid to Safi is to fly and train which costs MAD 500 - MAD 2,600 and takes 9h 5m.
The fastest way to get from Madrid to Safi is to fly and train which takes 9h 5m and costs MAD 500 - MAD 2,600.
The distance between Madrid and Safi is 1312 km.
It takes approximately 10h 54m to get from Madrid to Safi, including transfers.
Safi is 1h behind Madrid. It is currently 7:20 AM in Madrid and 6:20 AM in Safi.
There are 111+ 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 Essaouira (ESU), take the taxi to Essaouira, then take the bus 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
- iberia.com
Flights from Adolfo Suárez Madrid–Barajas Airport to Essaouira via Sevilla
- Ave. Duration
- 6h 22m
- When
- Wednesday and Saturday
- Estimated price
- MAD 1,200–3,100
Flights from Adolfo Suárez Madrid–Barajas Airport to Essaouira via Barcelona
- Ave. Duration
- 7h 32m
- When
- Wednesday and Saturday
- Estimated price
- MAD 1,200–3,100
Flights from Adolfo Suárez Madrid–Barajas Airport to Marrakech
- Ave. Duration
- 2h 2m
- When
- Every day
- Estimated price
- MAD 450–1,300
Flights from Adolfo Suárez Madrid–Barajas Airport to Marrakech via Mohammed V International Airport
- Ave. Duration
- 4h 55m
- When
- Every day
- Estimated price
- MAD 650–3,600
Flights from Adolfo Suárez Madrid–Barajas Airport to Mohammed V International Airport
- Ave. Duration
- 1h 48m
- When
- Every day
- Estimated price
- MAD 600–4,500
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 650–4,000
- Website
- royalairmaroc.com
Flights from Adolfo Suárez Madrid–Barajas Airport to Marrakech
- Ave. Duration
- 2h
- When
- Every day
- Estimated price
- MAD 450–1,300
Flights from Adolfo Suárez Madrid–Barajas Airport to Marrakech via Mohammed V International Airport
- Ave. Duration
- 4h 23m
- When
- Every day
- Estimated price
- MAD 650–3,600
Flights from Adolfo Suárez Madrid–Barajas Airport to Mohammed V International Airport
- Ave. Duration
- 1h 45m
- When
- Every day
- Estimated price
- MAD 600–3,600
Flights from Adolfo Suárez Madrid–Barajas Airport to Agadir–Al Massira Airport via Mohammed V International Airport
- Ave. Duration
- 4h 42m
- When
- Every day
- Estimated price
- MAD 650–4,000
- Website
- ryanair.com
Flights from Adolfo Suárez Madrid–Barajas Airport to Marrakech
- Ave. Duration
- 2h 5m
- When
- Every day
- Estimated price
- MAD 350–2,100
Flights from Adolfo Suárez Madrid–Barajas Airport to Agadir–Al Massira Airport
- Ave. Duration
- 2h 20m
- When
- Thursday, Friday, and Sunday
- Estimated price
- MAD 370–3,800
Flights from Adolfo Suárez Madrid–Barajas Airport to Rabat-Salé
- Ave. Duration
- 1h 40m
- When
- Every day
- Estimated price
- MAD 550–3,900
- Website
- vueling.com
Flights from Adolfo Suárez Madrid–Barajas Airport to Essaouira via Sevilla
- Ave. Duration
- 6h 22m
- When
- Wednesday and Saturday
- Estimated price
- MAD 1,200–3,100
Flights from Adolfo Suárez Madrid–Barajas Airport to Essaouira via Barcelona
- Ave. Duration
- 7h 32m
- When
- Wednesday and Saturday
- Estimated price
- MAD 1,200–3,100
Flights from Adolfo Suárez Madrid–Barajas Airport to Marrakech
- Ave. Duration
- 2h 2m
- When
- Every day
- Estimated price
- MAD 450–1,300
Flights from Adolfo Suárez Madrid–Barajas Airport to Mohammed V International Airport
- Ave. Duration
- 1h 55m
- When
- Every day
- Estimated price
- MAD 600–4,500
- Website
- aireuropa.com
Flights from Adolfo Suárez Madrid–Barajas Airport to Marrakech
- Ave. Duration
- 2h 5m
- When
- Thursday and Sunday
- Estimated price
- MAD 400–2,000
- 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
- 3 times a day
- Estimated price
- MAD 55–110
- Schedules at
- oncf-voyages.ma
- Book at
- oncf-voyages.ma
- 2nd Class
- MAD 55–80
- 1st Class
- MAD 80–110
Train from Oasis to Gare ONCF de Safi
- Ave. Duration
- 4h 4m
- Frequency
- Once daily
- Estimated price
- MAD 120–250
- Schedules at
- oncf-voyages.ma
- Book at
- oncf-voyages.ma
- 2nd Class
- MAD 120–170
- 1st Class
- MAD 180–250
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
Train from Gare de Ben Guerir to Gare ONCF de Safi
- Ave. Duration
- 2h 2m
- Frequency
- 3 times a day
- Estimated price
- MAD 55–110
- Schedules at
- oncf-voyages.ma
- Book at
- oncf-voyages.ma
- 2nd Class
- MAD 55–80
- 1st Class
- MAD 80–110
- Phone
- 0 800 0900 30
- ctmweb.ma@gmail.com
- Website
- ctm.ma
Bus from Essaouira to Safi
- Ave. Duration
- 2h 25m
- Frequency
- Every 4 hours
- Estimated price
- MAD 65–130
- Schedules at
- ctm.ma
- Confort
- MAD 65–70
Bus from Essaouira to Safi
- Ave. Duration
- 2h 25m
- Frequency
- 4 times a day
- Estimated price
- MAD 90–130
- Schedules at
- ctm.ma
- 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 220–250
- Schedules at
- souktosurf.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 10 amazing places to get away from it all in Australia, How to get from Stansted Airport into central London, and 5 delightfully under-the-radar French towns you need to visit - to help you get the most out of your next trip.













