Capital of Morocco: Rabat, the Royal City by the Sea
What is the capital of Morocco? Many travelers guess Marrakech or Casablanca, but the right answer is Rabat. This calm, green and elegant city on the Atlantic coast is the home of the King, the government and the parliament, and it is one of the most pleasant cities to visit in the country.
In this guide, our local team explains why Rabat is the capital of Morocco, what the old capitals were, what to see in Rabat and how to add it to your trip.
Capital of Morocco at a Glance
| Fact | Details |
|---|---|
| Capital | Rabat |
| Capital since | 1912, kept after independence in 1956 |
| Location | Atlantic coast, mouth of the Bou Regreg River |
| UNESCO | World Heritage Site since 2012 |
| Biggest city | Casablanca (not the capital) |
| Famous sites | Hassan Tower, Kasbah of the Udayas, Chellah |
Rabat: The Capital of Morocco
Rabat sits on the Atlantic Ocean, at the mouth of the Bou Regreg River. Across the river is its twin city, Salé. Rabat is the political heart of the country: the Royal Palace, the ministries, the parliament and the embassies are all here.
Compared with busy Marrakech or huge Casablanca, Rabat feels quiet, clean and relaxed. It has wide avenues, gardens, a modern tram and a beautiful old medina by the sea. In 2012, UNESCO added «Rabat, Modern Capital and Historic City» to the World Heritage List.
Why Is Rabat the Capital of Morocco?
In 1912, when the French protectorate began, the French resident-general Lyautey chose Rabat as the administrative capital. It was on the coast, easy to reach by sea, and far from the political tensions of the old capital, Fes. When Morocco became independent in 1956, King Mohammed V kept Rabat as the capital of Morocco, and it has stayed so ever since.
The Former Capitals of Morocco
Over the centuries, different dynasties chose different cities as their capital. These are known today as the four imperial cities:
- Fes: founded in the 8th and 9th centuries, capital under the Idrisids, Merinids and others. Its old medina is one of the largest in the world. See things to do in Fes.
- Marrakech: founded in 1070 by the Almoravids, it gave its name to the whole country («Morocco» comes from «Marrakech»). Read is Marrakech the capital of Morocco.
- Meknes: the great capital of Sultan Moulay Ismail in the 17th century, with huge walls and gates.
- Rabat: briefly a capital under the Almohads in the 12th century, and the modern capital today.
Capital vs Biggest City: Rabat or Casablanca?
Many people think Casablanca is the capital of Morocco because it is the biggest city, the main airport hub and the business center of the country. But Casablanca is the economic capital, while Rabat is the political capital. The two cities are only about one hour apart by train.
Top Things to Do in Rabat
Hassan Tower and the Mausoleum of Mohammed V
The Hassan Tower is the unfinished minaret of a giant mosque started in the 12th century by the Almohad sultan Yacoub al-Mansour. Around it stand rows of old columns. Opposite is the beautiful Mausoleum of Mohammed V, with royal guards on horseback at the gate.
Kasbah of the Udayas
This old fortress above the river mouth has blue and white streets, a lovely Andalusian garden and amazing views over the ocean. Stop for mint tea at the cafe on the terrace.
Chellah
A peaceful site with Roman ruins and a medieval Merinid necropolis, full of gardens and storks nesting on the old towers.
The Medina and the Souks
Rabat’s medina is small, calm and easy to explore. Shopping here is relaxed, with less pressure than in bigger cities.
Museums and Modern Rabat
Visit the Mohammed VI Museum of Modern and Contemporary Art, walk along the river and see the new Grand Theatre designed by Zaha Hadid. Read our full guide to things to do in Rabat.
How Long to Spend in the Capital of Morocco
One full day is enough to see the main sights of Rabat. Two days let you enjoy the medina, the beach, Salé and the museums at a slow pace. Many travelers visit Rabat on the way from Casablanca to Fes or Chefchaouen.
How to Get to Rabat
- By plane: Rabat-Salé Airport has flights to Europe, or fly into Casablanca and continue by train.
- By train: fast and comfortable trains link Rabat with Casablanca, Tangier (by the Al Boraq high-speed train), Fes, Meknes and Marrakech.
- By car: good highways connect Rabat with the main cities.
- On a private tour: our tours from Casablanca and Tangier often stop in Rabat.
Best Time to Visit Rabat
Thanks to the ocean breeze, Rabat is pleasant almost all year. Spring and autumn are perfect. Summers are warm but much cooler than Marrakech or the desert, and winters are mild with some rain.
Visit the Capital on Our Morocco Tours
You can add Rabat to many of our private itineraries, for example:
Fun Facts About the Capital of Morocco
- Rabat’s name comes from «Ribat», a fortified place used by early defenders of the coast.
- Rabat and Salé were once home to famous pirates, the Salé Rovers.
- The city has one of the first modern tram systems in Morocco.
- Rabat is often called the «City of Lights».
Frequently Asked Questions
What is the capital of Morocco?
Rabat is the capital of Morocco.
Is Marrakech the capital of Morocco?
No. Marrakech was a capital in the past, but today the capital is Rabat.
Is Casablanca the capital of Morocco?
No. Casablanca is the biggest city and the economic center, but Rabat is the capital.
Since when is Rabat the capital?
Since 1912, and it stayed the capital after independence in 1956.
Is Rabat worth visiting?
Yes. Rabat is calm, clean and full of history, and it is easy to visit in one or two days.
Final Thoughts on the Capital of Morocco
The capital of Morocco is Rabat: a peaceful city of gardens, ocean views and royal monuments. It is a perfect stop between Casablanca, Fes and the north. Want to include it in your trip? Contact our local team for a free quote and we will plan your private tour around what you love.
Explore our Morocco trips:
Tours from Marrakech: Cross the High Atlas to Ait Ben Haddou, the Todra Gorge and the dunes of Erg Chebbi.
Tours from Fes: Ride through the cedar forests of the Middle Atlas to the Sahara.
Tours from Casablanca: Discover the imperial cities, the mountains and the desert in one trip.
Contact us
Your Local Experts
Ibrahim and our Moroccan team plan your trip with care. Whether you land in Marrakech, Fes, Casablanca, Tangier, Rabat, Agadir or Ouarzazate, we pick you up and shape each day around what you love.
Plan Your Trip
Click any destination to see more: