Transport and infrastructure in Morocco

Our listing of the primary types of transport compares the infrastructure of Morocco with the average of all countries in Africa. The traffic routes have noticeable defects in many places and are often not in particularly good condition.

In terms of the length of its rail network, Morocco ranks 98th in the world with 0.06 meters per inhabitant. In total, the rail network is 2,295 kilometers long. Freight traffic on the rails most recently totaled 3.15 billion tons and kilometers traveled. Passenger traffic reached 4.46 billion passenger-kilometers in 2021.

Airports in Morocco

Back to overview: Morocco

Road traffic

The network of roads and highways has a total length of 57,300 km. For each of the country's 37.08 million inhabitants, this corresponds to 1.55 meters. This puts Morocco in 185th place in the global ranking. However, the country's size and population density of around 83 inhabitants per km² must also be taken into account. Countries with fewer inhabitants in the same or even larger area naturally achieve quite different values here and have to connect remote areas to the transport network despite a smaller population.

With an average of 6744 traffic fatalities per year (2013 - 2019), road traffic in Morocco is considered rather mixed. This corresponds to 19.0 accident fatalities per 100,000 inhabitants per year. By comparison, this figure is 12.3 in the USA and 17.0 worldwide.

In Morocco, traffic drives on the right-hand side of the road, i.e. people drive in the right-hand lane and overtake on the left. Oncoming traffic comes toward you on the left side. Here you can also find an overview of all countries with left-hand traffic.



 totalper 1 mio
per km²
Roadways57,300 km1,545.45 km128.32 m
Railroads2,300 km61.90 km5.14 m
Waterways0 km0.00 km0.00 m
Commercial harbors932.510.000


 total per 1 mio
per km²
Roadways2,997,800 km2,151.40 km98.86 m
Railroads88,600 km63.57 km2.92 m
Waterways68,400 km49.09 km2.26 m
Commercial harbors7,9495.700.000

Data sources used

Global Health Observatory Data Repository (World Health Organization)
Internation Union of Railways (UIC)
CIA Factbook
OECD Statistics
Wikipedia (german)
Morocco: AirportsLargest airports and airlines in MoroccoThe 14 biggest airports and 3 airlines in Morocco with further information and data with further information on airlines and destinations
Morocco: ClimateClimate and temperature development in MoroccoA climate analysis for Morocco incl. temperatures, humidity, rain days per month, hours of sunshine, water temperature, rainfalls
Ranking: MegacitiesMega cities - the biggest cities all over the worldRanking of the biggest cities worldwide. On top: Shanghai, Chongqing and Beijing