There are 4 ways to get from Safi to Madrid by train, plane, car, or car ferry
Select an option below to see step-by-step directions and to compare ticket prices and travel times in Rome2Rio's travel planner.
Train, train to Marrakech, fly
best- Take the train from Gare ONCF de Safi to Gare de Ben Guerirtrain
- Take the train from Ben Guerir to Marrakechtrain
- Fly from Marrakech (RAK) to Adolfo Suárez Madrid–Barajas Airport (MAD)plane RAK - MAD
7h 59m€51–173Drive, car ferry
- Drive from Safi to Port of Tangier Villecar
- Take the car ferry from Port of Tangier Ville to Tarifacarferry
- Drive from Tarifa to Madridcar
14h 6m€207–306Train, train to Mohammed V International Airport, fly
- Take the train from Gare ONCF de Safi to Gare de Ben Guerirtrain
- Take the train from Ben Guerir to Gare Oasistrain
- Fly from Mohammed V International Airport (CMN) to Adolfo Suárez Madrid–Barajas Airport (MAD)plane CMN - MAD
9h 42m€65–200Train, train to Rabat-Salé, fly
- Take the train from Gare ONCF de Safi to Gare de Ben Guerirtrain
- Take the train from Ben Guerir to Rabat Agdaltrain
- Fly from Rabat-Salé (RBA) to Adolfo Suárez Madrid–Barajas Airport (MAD)plane RBA - MAD
10h 6m€63–257
Marrakech (RAK) to Adolfo Suárez Madrid–Barajas Airport (MAD) flights
Questions & Answers
The cheapest way to get from Safi to Madrid is to train and fly which costs €50 - €180 and takes 7h 59m.
The fastest way to get from Safi to Madrid is to train and fly which takes 7h 59m and costs €50 - €180.
The distance between Safi and Madrid is 1298 km.
It takes approximately 7h 59m to get from Safi to Madrid, including transfers.
There are 6334+ hotels available in Madrid.
What companies run services between Safi, Morocco and Madrid, Spain?
There is no direct connection from Safi to Madrid. However, you can take the train to Gare de Ben Guerir, take the train to Marrakech, walk to Gare Routière de ONCF, take the line 19 bus to Marrakech Airport, walk to Marrakech (RAK) airport, fly to Adolfo Suárez Madrid–Barajas Airport (MAD), walk to Madrid-Aeropuerto T4, then take the train to Madrid Chamartín. Alternatively, you can take a vehicle from Safi to Madrid via Port of Tangier Ville and Tarifa in around 14h 6m.
- Website
- ryanair.com
Flights from Marrakech to Adolfo Suárez Madrid–Barajas Airport
- Ave. Duration
- 2h 5m
- When
- Every day
- Estimated price
- €30–130
Flights from Rabat-Salé to Adolfo Suárez Madrid–Barajas Airport
- Ave. Duration
- 1h 40m
- When
- Every day
- Estimated price
- €40–180
- Website
- royalairmaroc.com
Flights from Marrakech to Adolfo Suárez Madrid–Barajas Airport
- Ave. Duration
- 2h
- When
- Every day
- Estimated price
- €45–110
Flights from Marrakech to Adolfo Suárez Madrid–Barajas Airport via Mohammed V International Airport
- Ave. Duration
- 4h 25m
- When
- Every day
- Estimated price
- €60–190
Flights from Mohammed V International Airport to Adolfo Suárez Madrid–Barajas Airport
- Ave. Duration
- 1h 45m
- When
- Every day
- Estimated price
- €45–200
Flights from Mohammed V International Airport to Adolfo Suárez Madrid–Barajas Airport via Sevilla
- Ave. Duration
- 3h 50m
- When
- Wednesday, Friday, and Saturday
- Estimated price
- €80–200
Flights from Mohammed V International Airport to Adolfo Suárez Madrid–Barajas Airport via Alicante–Elche
- Ave. Duration
- 4h 25m
- When
- Wednesday and Sunday
- Estimated price
- €80–200
- Website
- iberia.com
Flights from Marrakech to Adolfo Suárez Madrid–Barajas Airport
- Ave. Duration
- 2h
- When
- Every day
- Estimated price
- €45–110
Flights from Mohammed V International Airport to Adolfo Suárez Madrid–Barajas Airport
- Ave. Duration
- 1h 45m
- When
- Every day
- Estimated price
- €45–200
Flights from Mohammed V International Airport to Adolfo Suárez Madrid–Barajas Airport via Malaga
- Ave. Duration
- 3h 30m
- When
- Tuesday to Sunday
- Estimated price
- €80–200
- Website
- aireuropa.com
Flights from Marrakech to Adolfo Suárez Madrid–Barajas Airport
- Ave. Duration
- 1h 55m
- When
- Monday and Thursday
- Estimated price
- €26–120
- Website
- airarabia.com
Flights from Mohammed V International Airport to Adolfo Suárez Madrid–Barajas Airport
- Ave. Duration
- 1h 45m
- When
- Tuesday, Thursday, Friday, and Sunday
- Estimated price
- €45–140
- Phone
- 2255
- communication.digitale@oncf.ma
- Website
- oncf-voyages.ma
Train from Gare ONCF de Safi to Gare de Ben Guerir
- Ave. Duration
- 2h
- Frequency
- Twice daily
- Estimated price
- €5–11
- Schedules at
- oncf-voyages.ma
- Book at
- oncf-voyages.ma
- 2nd Class
- €5–8
- 1st Class
- €8–11
Train from Ben Guerir to Marrakech
- Ave. Duration
- 43 min
- Frequency
- Hourly
- Estimated price
- €2–6
- Schedules at
- oncf-voyages.ma
- Book at
- oncf-voyages.ma
- 2nd Class
- €2–4
- 1st Class
- €4–6
Train from Ben Guerir to Gare Oasis
- Ave. Duration
- 1h 46m
- Frequency
- Hourly
- Estimated price
- €6–13
- Schedules at
- oncf-voyages.ma
- Book at
- oncf-voyages.ma
- 2nd Class
- €6–9
- 1st Class
- €9–13
Train from Ben Guerir to Rabat Agdal
- Ave. Duration
- 2h 46m
- Frequency
- Hourly
- Estimated price
- €9–20
- Schedules at
- oncf-voyages.ma
- Book at
- oncf-voyages.ma
- 2nd Class
- €9–14
- 1st Class
- €14–20
- Phone
- +34 912 66 02 15
- reservas@balearia.com
- Website
- balearia.com
Car ferry from Port of Tangier Ville to Tarifa
- Ave. Duration
- 1h
- Frequency
- 5 times a day
- Estimated price
- €30–45
- 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 Slovenia: Getting from Ljubljana to Lake Bled, How to travel India's Golden Triangle, and 4 of the smartest ways to explore Australia - to help you get the most out of your next trip.











