Rail transport in Morocco the development of a high-speed railway from Tangier via Rabat and Casablanca to Marrakech. Also a (passenger) rail connection between Tangier and Tangier MED, the port on the Mediterranean near Tangier, will give passengers arriving by ferry a connection to the main lines. A train will operate every 2 hours between the port and Tangier city. A freight-line from the Renault factory at Tangier MED is already operational Rail transport in Morocco Rail transport in Morocco is operated by the national railway operator ONCF. It was initially developed during the colonial era. The main network for passenger-transport consists of a
Casablanca–Tangier high-speed rail line the test program an African rail speed record of was set.<ref name="rg 7/18"></ref> In October 2017, track construction was completed, followed by the new electric catenary in November. The electrical system was energised for the first time in January 2018, and the line's control facility came online in February. By mid-2018, construction of stations had been completed, though the estimated beginning of service had been pushed back until the end of the year as trial runs over the route had yet to be operated. On 15 November 2018, the service was inaugurated in a ceremony at Tangier and a special