
Marrakesh to Tangier Trains

Travel seamlessly from Marrakesh to Tangier on the Marrakesh to Tangier train route, covering a distance of about 511 kilometers. This high-speed train ensures a comfortable and timely connection between these two captivating Moroccan cities. Enjoy the scenic beauty and cultural richness along the way, making your journey as memorable as the destinations themselves. Plan your adventure and explore the wonders of Morocco with the Marrakesh to Tangier train experience.



The distance from Marrakesh to Tangier by train is approximately 570 kilometres (around 354 miles), traversing the length of Morocco's most populated and historically significant corridor and connecting the country's most visited imperial city with its northern gateway to Europe. The train journey between the two cities passes through the heart of Morocco, linking a route that takes in some of the country's most important urban centres and landscapes along the way. Driving the same distance takes around 5 to 6 hours under normal conditions, but the combination of long distances, variable road conditions, and the considerable fatigue of navigating Moroccan highways makes the train a far more relaxed and practical proposition for most travellers. The opening of Africa's first high-speed rail line, the Al Boraq, connecting Tangier to Casablanca, has transformed travel times on the northern section of this route and brought Morocco's rail network to international attention, making the Marrakesh to Tangier journey by train a more competitive and attractive option than ever before.
The Marrakesh to Tangier train journey takes approximately 4 hours and 45 minutes to 5 hours and 30 minutes in total, depending on the connections made along the route and the specific services chosen. The journey typically requires a change of train at Casablanca, where passengers transfer from the conventional intercity service arriving from Marrakesh onto the Al Boraq high-speed train for the final leg north to Tangier. The Al Boraq, operated by ONCF, Morocco's national rail operator, is Africa's first and currently only high-speed rail service and covers the Casablanca to Tangier section in approximately 2 hours and 10 minutes at speeds of up to 320 kilometres per hour. The Marrakesh to Casablanca leg takes around 2 hours and 40 minutes on the fastest services, making the overall connection a remarkably efficient way to cross the country from south to north. Travellers should allow sufficient time at Casablanca for the connection between the two services, and checking the timetable carefully in advance is strongly recommended.
Travellers taking the Marrakesh to Tangier train depart from Marrakesh Station, which is the city's sole rail terminal and a handsome, well-maintained facility situated on the western edge of the city centre, a short distance from the famous Djemaa el-Fna square and the entrance to the medina. The station is easily reachable by taxi, city bus, and the horse-drawn calèche carriages that remain a distinctive feature of Marrakesh's urban transport landscape. Marrakesh Station is clean, well-organised, and offers a comfortable waiting environment with ticketing facilities, a café, and basic amenities. In Tangier, trains on the high-speed Al Boraq service arrive at Tanger Ville station, the city's modern and centrally located terminal, which was substantially upgraded as part of the high-speed rail project and is situated within easy reach of the medina, the port, and the main hotel districts. Tickets for the Marrakesh to Tangier train, including connections via Casablanca, can be booked in advance through Rail Ninja, with instant email confirmation and no need to collect or print at the station.
Most travellers on the Marrakesh to Tangier route will need to change trains at Casablanca, as direct through services covering the entire journey in a single train are not the standard arrangement on this corridor. The change typically takes place at Casa Voyageurs, Casablanca's main intercity rail station, where passengers arriving from Marrakesh transfer to the Al Boraq high-speed service for the onward journey to Tangier. The connection at Casablanca is generally well organised and the transfer between platforms is straightforward, though travellers carrying significant luggage should allow a comfortable amount of time between the two services rather than booking the tightest possible connection. ONCF's ticketing system allows travellers to book the full Marrakesh to Tangier journey as a combined itinerary, which simplifies the process considerably and ensures that connecting times are factored into the overall reservation. As with any journey involving a connection, checking the latest timetable information at the time of booking is always advisable, as schedules can vary seasonally.
For most travellers, the train is the most sensible and rewarding way to make the journey between Marrakesh and Tangier, offering a combination of comfort, reliability, and scenery that the bus and private car struggle to match over such a long distance. The journey passes through Casablanca and continues north through the Gharb plains and the rolling hills of northern Morocco, offering a genuine cross-section of the country's varied landscapes and a sense of the scale and diversity of the Moroccan interior that no flight could convey. Tangier itself has undergone a remarkable transformation in recent years, emerging from decades of neglect to become one of Morocco's most dynamic and culturally interesting cities, with a revitalised waterfront, a thriving arts scene, and a medina that rewards unhurried exploration. For travellers crossing from Morocco into Spain via the ferry connection from Tangier Med port, the train from Marrakesh provides a logical and enjoyable final leg of a longer journey, and the experience of arriving in Tangier by rail, with Europe visible across the Strait of Gibraltar on a clear day, is one of the more evocative moments available to any traveller in North Africa.