Is Rabat the capital?
The short answer
Yes, since 1912.
The French protectorate chose Rabat over Fes (politically volatile), Marrakech (too far south), and Casablanca (too commercial). Morocco has four imperial cities — Fes, Marrakech, Meknes, and Rabat — each served as a dynastic capital at different points in history.