According to the Global Competitiveness Report of 2019, Morocco Ranked 32nd in the world in terms of Roads, 16th in Sea, 45th in Air and 64th in Railways. This gives Morocco the best infrastructure rankings in the African continent.

Modern infrastructure development, such as ports, airports, and rail links, is a top government priority. To meet the growing domestic demand, the Moroccan government invested more than $15 billion from 2010 to 2015 in upgrading its basic infrastructure.

Morocco has one of the best road systems on the continent. Over the past 20 years, the government has built approximately 1770 kilometers of modern roads, connecting most major cities via toll expressways. The Moroccan Ministry of Equipment, Transport, Logistics, and Water aims to build an additional 3380 kilometers of expressway and 2100 kilometers of highway by 2030, at an expected cost of $9.6 billion. It focuses on linking the southern provinces, notably the cities of Laayoune and Dakhla to the rest of Morocco.

In 2014, Morocco began the construction of the first high-speed railway system in Africa linking the cities of Tangiers and Casablanca. It was inaugurated in 2018 by the King following over a decade of planning and construction by Moroccan national railway company ONCF. It is the first phase of what is planned to eventually be a 1,500 kilometeres (930 mi) high-speed rail network in Morocco. An extension of the line to Marrakesh is already being planned.

Morocco also has the largest port in Africa and the Mediterranean called Tanger-Med, which is ranked the 18th in the world with a handling capacity of over 9 million containers. It is situated in the Tangiers free economic zone and serves as a logistics hub for Africa and the world.
What's the Moroccan infrastructure ?
Morocco has the best infrastructure in Africa.Morocco is ranked 32 in the world in terms of Roads, 16th in Sea , 45th in Air and 64 in Railways. A High-speed railway system was inaugurated in 2018. It's linking the cities of Tangiers and Casablanca. An extension of the line is already planned.
Morocco has also  the largest port in Africa called Tanger Med. It's ranked 18th in the world.