Marrakech is the southern terminus of Morocco's main passenger railway, giving the city an important role at the end of the ONCF network. The city has one principal rail station, Marrakech Railway Station, which handles long-distance trains from Marrakech and trains to Marrakech on the northbound conventional main line.
ONCF operates intercity services between Marrakech and major Moroccan rail hubs, including Casablanca, Rabat, Fes, Meknes, and Tangier with transfers where required. Marrakech does not sit on the Al Boraq high-speed line, which runs in northern Morocco, so passengers use conventional ONCF Al Atlas and intercity services for the Marrakech corridor.
Rail routes from Marrakech run north toward Casablanca and the Atlantic axis, then continue toward Rabat, Kenitra, Tangier, Meknes, and Fes through ONCF connections. The train station also acts as the rail access point for passengers continuing by road to areas beyond the current national rail network. Book trains from and to Marrakech online at Rail Monsters.