Madrid to Rabat by train
Travel from Madrid (Spain) to Rabat (Morocco) by train (764km): schedule and information to the train connection. Compare fares and buy your ticket.
To travel by train from Madrid in Spain to Rabat in Morocco, your route includes a ferry from Algeciras (Spain) and Tanger (Morocco).
Your travel route could be like that.
764 km
How to use the following information: we show you the best routes and where to buy tickets. On longer routes you may need more than one ticket. Book your tickets step by step as explained. If you have questions about the route from Madrid to Rabat, please ask in our forum. Of course, sometimes there are as well other travel routes possible.
The following links could be interesting for you.
train connections : popular connections travelled by other users
Rabat - Madrid1 Madrid (Spain) - Algeciras (Spain) - Tangier (Morocco) - Rabat (Morocco)
The route consist of more than one step. You have to buy several train tickets.
1a Travelling from Madrid (Spain) to Algeciras (Spain)
To travel in Spain by train, buy your ticket via one of the following booking links or at a station. Book early to get advance fares that are considerably cheaper than the full fare. Trains can get fully booked especially on weekends and routes with infrequent services. By clicking on the the booking links you find exact schedules and ticket prices. In Spain you find several night trains and interesting high-speed connections by AVE trains.
Where to buy a ticket from Madrid to Algeciras?
The following links could be interesting for you.
train types: Train types you are likely to travel with.
Alta Velocidad Española (AVE) / Alvia (ALVIA) / Media Distancia (MD) / Cercanias (CER) / EuskoTren (EUSKO) / TGV Elipsos France - Spain (TGV Elipsos)
night train: Night trains that might be suitable for this trip.
TH 332 Madrid - Lisbon / TH 313 Hendaye - Lisbon / HOT 922 Barcelona - A Coruña / TH 751 Madrid - Ferrol
bus: Bus connections that might be helpful.
Lloret de Mar - Blanes / Seville - Faro
ferry: Ferry connections that might be helpful.
Barcelona - Civitavecchia / Algeciras - Tangier / Barcelona - Ibiza / Barcelona - Palma de Mallorca
train company:
RENFE Renfe Operadora / FEVE RENFE Ferrocarriles de Vía Estrecha / ET EuskoTren / GRIM Grimaldi Lines
train connections: popular connections travelled by other users
Algeciras - Madrid / Barcelona - Madrid / Barcelona - San Sebastián / Barcelona - Santiago de Compostela / Barcelona - Seville / Barcelona - Algeciras / Madrid - Barcelona / Madrid - Seville / Madrid - Santiago de Compostela / Seville - Santiago de Compostela / Seville - Barcelona
search for train schedules here: Online timetable information, on which you can find relevant, up-to-date connections.
rail.cc Deutsche Bahn
1b Travelling from Algeciras (Spain) to Tangier (Morocco)
To travel by train and ferry from Spain to Morocco, first travel by train to Algeciras. There you change to the ferry to Tangier Med. The journey time is about 90 minutes. Ferry tickets start from 30 EUR.
In Tangier Med (port of Tangier) take the bus to Tangier Ville (the railway station of Tangier). The bus runs between 06:00 and 22:00 and is free to use with your ferry ticket.
From Tangier Ville continue by train your journey to your final destination in Morocco.
You have to buy three tickets through the given booking links. There you will also find the exact timetable for the trains and the ferry.
1) Train ticket from your departure train station to Algeciras.
2) Ferry ticket from Algeciras to Tangier Med.
3) Train ticket from Tangier Ville to your travel destination in Morocco.
Where to buy a ticket from Algeciras to Tangier?
The following links could be interesting for you.
night train: Night trains that might be suitable for this trip.
ONCF Tangier - Marrakesh
ferry: Ferry connections that might be helpful.
Algeciras - Tangier / Tangier - Algeciras
train company:
BALE Balearia / ACCT Acciona Trasmediterránea
train connections: popular connections travelled by other users
Tangier - Algeciras / Madrid - Casablanca / Madrid - Marrakesh / Madrid - Rabat / Madrid - Tangier / Madrid - Agadir / Barcelona - Casablanca / Barcelona - Marrakesh / Barcelona - Rabat / Barcelona - Agadir / Barcelona - Tangier
1c Travelling from Tangier (Morocco) to Rabat (Morocco)
To travel by train in Morocco, buy your train tickets online via the given link.
The network of the national railway of Morocco was renovated the past years and several high-speed-connections will follow.
The main routes are from Oujda via Fes, Meknes to Rabat. And from Tangier to Rabat. Then from Rabat to the South in directions of Casablanca, El Jadida, Qued Zem, Marrakesh and Agadir.
The following links could be interesting for you.
train types: Train types you are likely to travel with.
Trains Grandes Lignes (TGL) / Trains Navettes Rapides (TNR)
night train: Night trains that might be suitable for this trip.
ONCF Marrakesh - Tangier / ONCF Tangier - Marrakesh
ferry: Ferry connections that might be helpful.
Algeciras - Tangier / Tangier - Algeciras
train company:
ONCF Office National des Chemins de Fer du Maroc
train connections: popular connections travelled by other users
Rabat - Tangier / Tangier - Casablanca / Tangier - Marrakesh / Marrakesh - Casablanca / Marrakesh - Rabat / Rabat - Casablanca / Rabat - Fes / Rabat - Agadir / Oujda - Rabat / Agadir - Tangier
Need a cheap place to sleep? We recommend booking.com
Find a cheap flight! Compare prices on Kiwi.com
Do you have questions about the connection between Madrid and Rabat? Does something not work as it should? Just ask in our forum and get competent answers from our rail travel experts.