About Marrakech

Marrakech is one of Morocco’s most vibrant and historic cities, known for its lively atmosphere, rich traditions, and the famous old quarter, the Medina of Marrakech. Within its ancient red walls, visitors find a maze of narrow streets filled with traditional riads, bustling souks, and historic monuments. At the heart of the medina lies Jemaa el-Fnaa, a dynamic square surrounded by landmarks such as Koutoubia Mosque, Bahia Palace, and Ben Youssef Madrasa, offering visitors a glimpse into the city’s rich history and architecture.

Beyond its historic sites, Marrakech features vibrant markets, peaceful gardens such as the Majorelle Garden, and modern districts filled with cafés and shops. For those traveling between Marrakech and major cities such as Casablanca, Rabat, and Tangier, trains operated by ONCF provide a fast and comfortable option, with frequent departures and convenient connections across the country.

Train Routes to and from Marrakech

Casablanca - Marrakech​

A journey of convenience between Casablanca and Marrakech.

ONCF high-speed trains
Distance: 247 km
Travel time: 2 h 54 m
CHECK DETAILS

Marrakech​ - Casablanсa

The Marrakech​ - Casablanсa is one of the most comfortable routes.

ONCF high-speed trains
Distance: 247 km
Travel time: 2 h 51 m - 2 h 56 m
CHECK DETAILS

Rabat - Marrakech

The train trip from Rabat to Marrakech is a sight travelers should not miss.

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

Marrakech - Rabat

The Marrakech-Rabat train journey combines modern travel amenities with incredible views.

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

Tangier - Marrakech

Enjoy the blend of modern amenities and breathtaking landscapes en route from Tangier to Marrakech.

ONCF high-speed trains
Distance: 502 km
Travel time: 5 h 38 m - 9 h 03 m
CHECK PRICES

Marrakech - Tangier

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

ONCF high-speed trains
Distance: 502 km
Travel time: 5 h 42 m
CHECK PRICES

Fes - Marrakech

A comfortable and scenic ride from Fes to Marrakech.

ONCF high-speed trains
Distance: 396 km
Travel time: 7 h 03 m
CHECK PRICES

Marrakech - Fes

The Marrakech-Fes train is a comfy and convenient way to experience Morocco.

ONCF high-speed trains
Distance: 396 km
Travel time: 6 h 52 m - 7 h 04 m
CHECK PRICES

Meknes - Marrakech

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

ONCF high-speed trains
Distance: 505 km
Travel time: 6 h 22 m
CHECK PRICES

Marrakech - Meknes

The Marrakech and Meknes stations are located in the city centers.

ONCF high-speed trains
Distance: 505 km
Travel time: 6 h 12 m
CHECK PRICES

Kenitra - Marrakech

The train ride from Kenitra to Marrakech is comfortable and efficient.

ONCF high-speed trains
Distance: 322 km
Travel time: 4 h 38 m - 5 h 16 m
CHECK PRICES

Marrakech - Kenitra

The train ride from Marrakech to Kenitra is smooth and comfortable.

ONCF high-speed trains
Distance: 322 km
Travel time: 4 h 34 m
CHECK PRICES

Mohammedia - Marrakech

The route from Mohammedia to Marrakech connects the coast with the capital.

ONCF high-speed trains
Distance: 250 km
Travel time: 3 h 17 m - 3 h 51 m
CHECK PRICES

Marrakech - Mohammedia

The Marrakech to Mohammedia train moves between southern and coastal Morocco.

ONCF high-speed trains
Distance: 250 km
Travel time: 3 h 17 m
CHECK PRICES

Train Stations in Marrakech

Marrakech Train Station is centrally located, providing convenient access to the city's vibrant attractions, including the iconic Jemaa el-Fnaa square and the historic Medina. The station serves both high-speed and regional trains, connecting Marrakech to Casablanca, Rabat, and beyond. Facilities at the station include comfortable waiting areas, restaurants, ticket counters, and prayer rooms, ensuring a seamless and pleasant travel experience for all passengers.
Learn More

How to Get from Marrakech to Other Cities by Train

Marrakech to Casablanсa Train Journey

The Marrakech to Casablanca route is a vital connection for travelers between two of Morocco's most prominent cities. The journey usually takes around 2 hours and 50 minutes, with frequent departures throughout the day.

The trains are high-speed and air-conditioned, with comfortable seating for passengers, and some services offer Wi-Fi. You can easily compare departure times and ticket prices using our search form above.
Marrakech to Casablanсa Train Journey
Marrakech to Rabat Train Journey
Marrakech to Rabat Train Journey

The Marrakech to Rabat route is an excellent option for travelers heading to Morocco's capital. The journey takes about 4 hours, with frequent departures throughout the day.

The service offers high-speed, air-conditioned trains, ensuring a comfortable and efficient travel experience. You can compare departure times and ticket prices using our search form above.
Marrakech to Tangier Train Journey

The Marrakech to Tangier route is a popular connection among travelers. The journey takes around 5 hours and 40 minutes.

The trains are high-speed and air-conditioned, providing a smooth and comfortable ride. You can compare departure times and ticket prices using our search form above.
Marrakech to Tangier Train Journey

Travel Tips for Visiting Marrakech 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 Marrakech, Casablanca, Rabat, and Tangier is high.
    2
  • Arrive Early at Marrakech Station
    Arrive at Marrakech 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 with local transport to your hotel near Jemaa el-Fnaa, allowing for traffic and the city center's busy crowds.
    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 Marrakech