Rabat to Madrid by train

Travel from Rabat (Morocco) to Madrid (Spain) by train (764km): schedule and information to the train connection. Compare fares and buy your ticket.

To travel by train from Rabat in Morocco to Madrid in Spain, your route includes a ferry from Tanger (Morocco) and Algeciras (Spain).

Your travel route could be like that.

764 km

railcc
Your train tickets and reservations at the best price/fares. Scroll down, read the details and make use of the booking links.

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 Rabat to Madrid, 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

Madrid - Rabat

1 Rabat (Morocco) - Tangier (Morocco) - Algeciras (Spain) - Madrid (Spain)

The route consist of more than one step. You have to buy several train tickets.

1a Travelling from Rabat (Morocco) to Tangier (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

1b Travelling from Tangier (Morocco) to Algeciras (Spain)

To travel by train and ferry from Morocco to Spain, first travel by train to Tangier Ville, the main station of Tangier. There you change to the hourly (06:00 to 22:00), free (if you show your ferry ticket) bus to the harbour Tangier Med.

In Tangier Med you change to the ferry in direction of Algeciras (Spain). Several ferry companies are available with frequent connections. The journey time is about 90 minutes. Ferry tickets start from 30 EUR.

In Algeciras (Spain), change back to a train to your destination in Spain.

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 in Morocco to Tangier Ville.
2) Ferry ticket from Tangier Med to Algeciras.
3) Train ticket from Algeciras to your travel destination.

The following links could be interesting for you.

night train: Night trains that might be suitable for this trip.
ONCF Marrakesh - Tangier

ferry: Ferry connections that might be helpful.
Algeciras - Tangier / Tangier - Algeciras

train company:
BALE Balearia / ACCT Acciona Trasmediterránea

1c Travelling from Algeciras (Spain) to Madrid (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.

The following links could be interesting for you.

train connections: popular connections travelled by other users
Madrid - Algeciras / 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

Need a cheap place to sleep? We recommend booking.com

IN
OUT

Find a cheap flight! Compare prices on Kiwi.com

HELP

Do you have questions about the connection between Rabat and Madrid? Does something not work as it should? Just ask in our forum and get competent answers from our rail travel experts.

Train Routes

about railcc: We are real travellers and offer honest and well-grounded tips and tricks for your train journey.

rail.cc is partner and friend of
Deutsche Bahn Logo
Interrail Logo
Eurail Logo
Omio Logo
Direct Ferries
ACPRail Logo
NS Logo
SNCB Logo
Booking.com Logo
China Highlights Logo
12GoAsia Logo
Flixtrain Logo
Inlandsbanan Logo
Nightjet Logo
SJ Logo
Kiwi.com Logo
Airbnb Logo
DJI Logo
Rentalcars Logo
top