 Fes lies on the East-West mainline in Northern Morocco and offers direct connections with Oujda and Nador in the East, Tangier in the North and via transfer at Meknes, the main North-West line to Rabat, Casablanca and Marrakech.A part of the Moroccan mainline network is electrified.On the West to East mainline Fes is the endpoint of the electrified tracks.