COVID-19 Travel restrictions may apply upon entering Spain. Learn More.

There are 5 ways to get from Rabat to Madrid by plane, train, bus, 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.

Recommended option

Fly  •  2h 43m

  1. Fly from Rabat (RBA) to Madrid (MAD) RBA - MAD

97€ - 334€

Cheapest option

Train, bus  •  15h 19m

  1. Take the train from Rabat Agdal to Tangier
  2. Take the bus from Tanger Port Ville to Cordoba 232
  3. Take the train from Cordoba-Central to Madrid-Puerta De Atocha Ave / ...

54€ - 138€

3 alternative options

Train, bus via Málaga  •  14h 39m

  1. Take the train from Rabat Agdal to Tangier
  2. Take the bus from Tanger Port Ville to Malaga Estacion 232
  3. Take the train from Malaga Maria Zambrano to Madrid-Puerta De Atocha Ave

74€ - 153€

Bus  •  19h 45m

  1. Take the bus from Rabat Agdal to Madrid Est Sur 232

70€ - 100€

Drive, car ferry  •  17h 39m

  1. Drive from Rabat to Al Hoceima
  2. Take the car ferry from Al Hoceima to Motril
  3. Drive from Motril to Madrid

118€ - 175€

Coronavirus (COVID-19) in Spain

There is widespread community transmission globally.
Some travel restrictions are being lifted in Spain. For the latest travel status, please check the official page for Spain.

For travel planning advice, please refer to our Rome2rio Coronavirus information page .
For the latest travel status, we recommend checking the official page for Spain.

Coronavirus (COVID-19) Travel Advice

Some international borders began to reopen in Spain from June 15.

Official Coronavirus (COVID-19) Information for Spain

Some domestic travel restrictions began to ease in Spain from May 9.

Official Coronavirus (COVID-19) Information for Spain

International flights leaving Morocco are suspended as part of the response to Coronavirus (COVID-19). Restrictions may also be in place for other modes of transport.

Last updated: July 14 | Data sourced from: ACAPS, OXFORD

Questions & Answers

The cheapest way to get from Rabat to Madrid is to train and bus which costs MAD 550 - MAD 1,500 and takes 15h 19m.

More details

The quickest way to get from Rabat to Madrid is to fly which costs MAD 1,000 - MAD 3,700 and takes 2h 43m.

More details

Yes, there is a direct bus departing from Rabat Agdal and arriving at Madrid Est Sur. Services depart twice daily, and operate Monday, Tuesday, Thursday, Friday and Saturday. The journey takes approximately 19h 45m.

More details

The distance between Rabat and Madrid is 764 km.

The best way to get from Rabat to Madrid without a car is to train and bus via Málaga which takes 14h 39m and costs MAD 800 - MAD 1,700.

More details

It takes approximately 2h 43m to get from Rabat to Madrid, including transfers.

More details

Rabat to Madrid bus services, operated by Eurolines FR, depart from Rabat Agdal station.

More details

The best way to get from Rabat to Madrid is to fly which takes 2h 43m and costs MAD 1,000 - MAD 3,700. Alternatively, you can bus, which costs MAD 750 - MAD 1,100 and takes 19h 45m.

Mode details

The quickest flight from Rabat Airport to Madrid Airport is the direct flight which takes 1h 25m.

Search flights

Rabat to Madrid bus services, operated by Eurolines FR, arrive at Madrid Est Sur station.

More details

Map of how to get from Rabat to Madrid.
Launch map view
  • Distance: 763.9 km
  • Duration: 2h 43m

What companies run services between Rabat, Morocco and Madrid, Spain?

Royal Air Maroc and Ryanair fly from Rabat to Madrid once daily. Alternatively, Eurolines FR operates a bus from Rabat Agdal to Madrid Est Sur twice daily. Tickets cost 70€ - 100€ and the journey takes 19h 45m.

Airlines
Royal Air Maroc
Website
royalairmaroc.com
Flights from Rabat to Madrid
Ave. Duration
1h 25m
When
Tuesday, Thursday and Saturday
Estimated price
70€ - 220€
Ryanair
Website
ryanair.com
Flights from Rabat to Madrid
Ave. Duration
1h 40m
When
Monday, Tuesday, Thursday and Saturday
Estimated price
15€ - 70€
Train operators
Moroccan Railways (ONCF)

Morocco’s comfortable and fast train network is operated by ONCF (Office National des Chemins de Fer) and links many tourist destinations, including a high-speed TGV link from Tangier via Rabat and Casablanca to Marrakech. For popular destinations where there is no train service, ONCF-operated Supratours offers connecting bus services from the nearest railway station to places like Agadir, Tétouan and Essaouira.

Contact Details
Phone
+212(0)537-77-47-47
Email
communication.digitale@oncf.ma
Website
oncf.ma
Train from Rabat Agdal to Tangier
Ave. Duration
1h 20m
Frequency
Hourly
Estimated price
7€ - 27€
Book at
Moroccan Railways (ONCF)
2nd Class
7€ - 10€
1st Class
11€ - 13€
First Class
17€ - 27€
Flex
13€ - 18€
Semi Flex
10€ - 17€
Renfe AVE
Rome2rio's guide to Renfe AVE
Contact Details
Website
renfe.com
Train from Malaga Maria Zambrano to Madrid-Puerta De Atocha
Ave. Duration
2h 38m
Frequency
4 times a day
Estimated price
50€ - 100€
Website
Renfe AVE
Promo
50€ - 70€
Promo+
58€ - 63€
Flexible
75€ - 100€
Train from Cordoba-Central to Madrid-Puerta De Atocha
Ave. Duration
1h 48m
Frequency
Every 3 hours
Estimated price
35€ - 75€
Website
Renfe AVE
Promo
35€ - 45€
Promo+
41€ - 44€
Flexible
55€ - 75€
Renfe Viajeros

Spain's excellent and extensive rail system connects cities across Spain and into neighbouring countries. Renfe's high-speed AVE trains can reach speeds of up to 350km/h, making travel between major cities very efficient. All medium- and long-distance trains require a seat reservation; ticket sales for these trains usually open 30-60 days before travel. Most Renfe trains have two classes: Turista (2nd class) and Preferente (1st class), although some AVE trains offer Turista Plus. There is free WiFi for Preferente passengers and for those with a +Renfe loyalty card.

Rome2rio's guide to Renfe Viajeros
Contact Details
Phone
902 320 320
Website
renfe.com
Train from Cordoba-Central to Madrid-Puerta De Atocha
Ave. Duration
1h 51m
Frequency
Twice daily
Estimated price
23€ - 29€
Website
Renfe Viajeros
Bus operators
Eurolines FR

Eurolines is a network of coach companies that operate throughout Europe plus Morocco. It’s an affordable way to travel around the continent, with tickets starting at €5. All coaches have Wi-Fi, plug sockets and USBs, reclining chairs and toilets, and a standard ticket includes up to two medium suitcases plus carry-on luggage. Within France, Eurolines serves 69 destinations; including Paris, Lyon, Versailles, Nice and Bordeaux.

Contact Details
Phone
+ 33 1 41 86 24 21
Website
eurolines.fr
Bus from Tanger Port Ville to Malaga Estacion
Ave. Duration
8h 30m
Frequency
4 times a day
Estimated price
17€ - 25€
Website
Eurolines FR
Bus from Tanger Port Ville to Cordoba
Ave. Duration
10h
Frequency
Twice daily
Estimated price
23€ - 35€
Website
Eurolines FR
Bus from Rabat Agdal to Madrid Est Sur
Ave. Duration
19h 45m
Frequency
Twice daily
Estimated price
70€ - 100€
Website
Eurolines FR
Ferry operators

Want to know more about travelling around Spain

Rome2rio's Travel Guide series provide vital information for the global traveller. Filled with useful and timely travel information, the guides answer all the hard questions - such as 'How do I buy a ticket?', 'Should I book online before I travel? ', 'How much should I expect to pay?', 'Do the trains and buses have Wifi?' - to help you get the most out of your next trip.

More Questions & Answers

Madrid is 1h ahead of Rabat. It is currently 4:12 PM in Rabat and 5:12 PM in Madrid.

Royal Air Maroc and Ryanair offer flights from Rabat Airport to Madrid Airport.

Search flights

Book your Rabat to Madrid bus tickets online with Busbud.

Search and book

There are 4321+ hotels available in Madrid. Prices start at 87€ per night.

More details

The best way to get from Rabat to Rabat Airport is to taxi which takes 32 min and costs MAD 130 - MAD 160.

More details