Is Rabat the capital of Morocco? Why not Casablanca or Marrakech?

The short answer

Yes, Rabat has been Morocco's capital since 1912. The French chose it over Fes (politically volatile), Marrakech (too far south), and Casablanca (too commercial). Morocco has four imperial cities — Fes, Marrakech, Meknes, and Rabat — each was once a dynastic capital. Today, Casablanca is the economic capital, Marrakech the tourist capital, and Rabat the political and administrative capital.

Yes. Rabat has been Morocco's capital since 1912 — and the confusion is understandable, because Casablanca is bigger, richer, and more famous, while Marrakech gets the tourist attention.

The choice was strategic. When France established the protectorate in 1912, Resident-General Hubert Lyautey chose Rabat over the obvious alternatives. Fes was the historic imperial capital but its medina was dense and politically volatile. Marrakech was powerful but far south. Casablanca was booming commercially but Lyautey didn't want to mix governance with commerce. Rabat — coastal, centrally located, with an existing Kasbah and room to build a modern administrative district — was the deliberate, planned choice.

Morocco has four **imperial cities** — Fes, Marrakech, Meknes, and Rabat — each of which served as the capital of a dynasty. Fes was the intellectual and spiritual centre under the Marinids. Marrakech gave its name to the country itself and was the Almoravid and Almohad capital. Meknes was Moulay Ismail's 17th-century creation. Rabat's turn came with the Almohads in the 12th century, then again with the French, and it stuck.

Today the Royal Palace in Rabat is the King's primary residence, though he has palaces in several cities. Parliament sits here. Every embassy is here. The administrative machinery of the Moroccan state runs from Rabat.