About Rabat

Rabat is the capital of Morocco and one of the country’s most elegant and historic cities, set along the Atlantic coast at the mouth of the Bouregreg River. Known for its relaxed atmosphere, Rabat combines centuries of history with modern urban life. Visitors can explore landmarks such as the Hassan Tower, the picturesque Kasbah of the Udayas, and the Royal Palace, while wide boulevards, gardens, and seaside promenades give the city a calm and welcoming character.

In addition to its cultural attractions, Rabat is an important transport hub with excellent rail connections. Trains operated by ONCF make it easy to travel to and from the capital, linking Rabat with major destinations such as Casablanca, Tangier, and Marrakech. With frequent departures, comfortable seating, and modern train services, rail travel is one of the most convenient ways to reach the city and continue exploring Morocco.

Train Routes to and from Rabat

Marrakech​ - Rabat

Travel from Marrakech to Rabat, Morocco’s elegant capital.

ONCF high-speed trains
Distance: 334 km
Travel time: 3 h 58 m - 4 h 03 m
CHECK DETAILS

Rabat - Marrakech​

Rabat - Marrakech is a journey from the coast to the lively medina and gardens.

ONCF high-speed trains
Distance: 334 km
Travel time: 4 h 02 m - 4 h 50 m
CHECK DETAILS

Casablanca - Rabat

The Casablanca - Rabat ride links Morocco’s largest city with its capital.

ONCF high-speed trains
Distance: 88 km
Travel time: 59 m - 2 h 58 m
CHECK DETAILS

Rabat - Casablanca

The Rabat - Casablanca route connects the capital with an economic hub.

ONCF high-speed trains
Distance: 88 km
Travel time: 1 h 05 m - 2 h 41 m
CHECK PRICES

Tangier – Rabat

Tangier-Rabat leads from the gateway of Gibraltar to Morocco's capital.

ONCF high-speed trains
Distance: 230 km
Travel time: 1 h 42 m - 4 h 58 m
CHECK DETAILS

Rabat - Tangier

A seamless and effective method to traverse between Rabat and Tangier.

ONCF high-speed trains
Distance: 230 km
Travel time: 1 h 44 m - 4 h 38 m
CHECK PRICES

Fes - Rabat

The Fes to Rabat train takes you from an imperial city to the modern capital.

ONCF high-speed trains
Distance: 169 km
Travel time: 2 h 58 m
CHECK PRICES

Rabat - Fes

The Rabat to Fes ride connects the Atlantic capital with a historic city.

ONCF high-speed trains
Distance: 169 km
Travel time: 2 h 51 m - 3 h 10 m
CHECK PRICES

Meknes - Rabat

A train from Meknes to Rabat is an excellent way to explore Morocco.

ONCF high-speed trains
Distance: 130 km
Travel time: 2 h 17 m
CHECK PRICES

Rabat - Meknes

The train journey from Rabat to Meknes is scenic and comfortable.

ONCF high-speed trains
Distance: 130 km
Travel time: 2 h 11 m - 2 h 23 m
CHECK PRICES

Kenitra - Rabat

The Kenitra - Rabat route is a short link between the river city and the capital.

ONCF high-speed trains
Distance: 33 km
Travel time: 32 m - 35 m
CHECK PRICES

Rabat - Kenitra

The Rabat - Kenitra provides a quick rail connection between the two cities.

ONCF high-speed trains
Distance: 33 km
Travel time: 32 m - 35 m
CHECK PRICES

Oujda - Rabat

The train trip from Oujda to Rabat crosses northern Morocco from the eastern frontier to the Atlantic capital.

ONCF high-speed trains
Distance: 340 km
Travel time: 9 h 3 m
CHECK PRICES

Rabat - Oujda

The journey from Rabat to Oujda connects Morocco’s capital with the eastern city near the Algerian border.

ONCF high-speed trains
Distance: 340 km
Travel time: 8 h 57 m - 9 h 25 m
CHECK PRICES

Mohammedia - Rabat

The train from Mohammedia to Rabat links the relaxed seaside city with Morocco’s political capital.

ONCF high-speed trains
Distance: 90 km
Travel time: 39 m - 55 m
CHECK PRICES

Rabat - Mohammedia

The journey from Rabat to Mohammedia follows the Atlantic coast to one the laid-back harbor town.

ONCF high-speed trains
Distance: 90 km
Travel time: 41 m - 51 m
CHECK PRICES

Train Stations in Rabat

Rabat Ville Train Station is the main railway hub serving Morocco’s capital and one of the most modern stations in the country. Located in the city center near major boulevards and government buildings, it provides convenient access to Rabat’s historic sites and business districts. Operated by ONCF, the station offers frequent train connections to major destinations such as Casablanca, Tangier, Marrakech, and Fes, making it an important gateway for travelers exploring Morocco by rail.
Learn More

How to Get from Rabat to Other Cities by Train

Rabat to Marrakech Train Journey

The train journey from Rabat to Marrakech connects Morocco’s Atlantic capital with the Red City. The trip takes around 4 hours, with several departures available throughout the day.

Modern ONCF trains are air-conditioned and offer comfortable seating for a pleasant journey, while some services provide onboard Wi-Fi. You can conveniently check schedules and ticket prices using the search form above.
Rabat to Marrakech Train Journey
Rabat to Casablanca Train Journey
Rabat to Casablanca Train Journey

The Rabat to Casablanca train route is one of the busiest connections in Morocco, linking the country’s capital with its largest economic center. The journey takes about 1 hour, with frequent daily departures.

A comfortable, air-conditioned ONCF train ride, with Wi-Fi access on certain services. Departure times and ticket prices can be easily viewed using the search form above.
Rabat to Tangier Train Journey

The Rabat to Tangier train journey connects Morocco’s capital with the northern port city overlooking the Strait of Gibraltar. The trip usually takes about 1 hour and 30 minutes, with multiple departures each day.

The trains are modern, air-conditioned, and have comfortable seating, while some services also provide Wi-Fi. Compare train schedules and ticket prices using the search form above.
Rabat to Tangier Train Journey

Travel Tips for Visiting Rabat by Train

  • Check Train Schedules
    Check ONCF high-speed train schedules early, especially if you are coordinating your journey with hotel check-in times and group arrangements.
    1
  • Book Tickets Early
    Book tickets in advance during peak seasons, as demand for seats between Rabat, Casablanca, and Marrakech is high.
    2
  • Arrive Early at Rabat Ville Station
    Arrive at the Ville train station 30 to 40 minutes early for ticketing, security checks, and to find your platform comfortably.
    3
  • Coordinate Arrival with Transport
    Coordinate your train arrival in Rabat with local transport to your hotel near the Hassan Tower or the Medina, allowing for traffic and busy streets.
    4
  • Keep Your Itinerary Flexible
    Keep your itinerary flexible to allow time for exploring nearby attractions, rather than rushing through too many activities in one day.
    5
  • Stay Hydrated and Comfortable
    Make sure to stay hydrated during your journey, as the climate can be hot, especially during peak seasons, ensuring a comfortable and enjoyable trip.
    6

FAQ About Trains to and from Rabat