QuestionMorocco

What Is the Capital of Morocco? Rabat Explained

The unfinished 12th-century Hassan Tower in Rabat, Morocco, beside rows of stone columns from the never-completed mosque
The unfinished 12th-century Hassan Tower in Rabat, Morocco, beside rows of stone columns from the never-completed mosque. Photo: Grace Tankard (CC BY 2.0), Wikimedia Commons

Rabat is the capital of Morocco. The city lies on the Atlantic coast at the mouth of the Bou Regreg River, facing its twin city of Salé, and is home to the royal palace, parliament and government ministries. Many people assume the capital is Casablanca, which is larger, but Rabat has been the capital since 1912.

Contents

Rabat: Morocco’s capital city

Rabat is the political and administrative heart of Morocco. The main royal palace, the Dar al-Makhzen, stands in the city, as do the two chambers of parliament, the ministries, the Constitutional Court and the central bank, Bank Al-Maghrib. Foreign embassies are also based in Rabat.

The 2024 census counted 515,619 people in the city of Rabat, according to the High Commission for Planning, making it only the seventh-largest city in the country. Together with Salé, Témara and nearby towns, the urban area has around 2 million inhabitants. Rabat is also the capital of the Rabat-Salé-Kénitra region.

Why is the capital Rabat and not Casablanca?

Casablanca is far bigger, with about 3.2 million people in the city in 2024, and it is Morocco’s main port and business center. Rabat became the capital for political reasons rather than size.

When France established its protectorate over most of Morocco under the Treaty of Fez in 1912, the first French resident-general, Hubert Lyautey, moved the seat of administration from Fez to Rabat. The coastal city was easier to reach from the sea and to defend than inland Fez, which had seen unrest in 1912. Lyautey had a new European-style town built beside the old medina. When Morocco became independent in 1956, Sultan Mohammed V kept Rabat as the capital.

Morocco’s earlier capitals

For most of its history Morocco had no single fixed capital. Each dynasty chose its own seat, and rulers often moved between several royal cities. Four of them are known as the imperial cities:

CityMain period as capital
FezIdrisids (from the 9th century), Marinids, early Alawis
MarrakeshAlmoravids, Almohads, Saadians
MeknesSultan Moulay Ismail (1672–1727)
RabatAlmohad project in the 12th century; capital since 1912

Fez, founded by the Idrisids around 789, was the leading religious and intellectual center. Marrakesh, founded by the Almoravids in the 11th century, gave its name to the whole country: the English word “Morocco” comes from a European form of the city’s name. Meknes was turned into a vast walled capital by the Alawi sultan Moulay Ismail.

A short history of Rabat

The site has been settled since ancient times. The Romans built a town called Sala Colonia, whose remains lie within the walls of Chellah. In the 12th century the Almohads built a fortress here as a base for campaigns into al-Andalus in Spain. The name Rabat comes from ribat, a fortified post, and the city was known as Ribat al-Fath, “the stronghold of victory.”

The Almohad caliph Yaqub al-Mansur planned a great capital here in the 1190s, with huge walls and one of the largest mosques of its time. After his death in 1199 the work stopped, leaving the Hassan Tower, an unfinished minaret about 44 m (144 ft) tall. In the 17th century Rabat and Salé became a base for the corsairs of the Republic of Bou Regreg.

Landmarks of Rabat

  • Hassan Tower and the Mausoleum of Mohammed V: the unfinished Almohad minaret faces the white marble tomb of Mohammed V, the sultan and later king who led Morocco to independence, and his son Hassan II.
  • Kasbah of the Udayas: a walled citadel above the river mouth with blue and white lanes and Andalusian gardens.
  • Chellah: Roman ruins and a Marinid royal burial ground surrounded by gardens.
  • The medina and the Ville Nouvelle: the old walled town beside the planned 20th-century city.

In 2012 UNESCO listed “Rabat, Modern Capital and Historic City” as a World Heritage Site, noting how the old and colonial-era districts sit side by side. Rabat is also one of the things Morocco is known for among visitors interested in history.

Rabat today

Modern Rabat is a city of government offices, universities and green avenues. Mohammed V University, the country’s oldest modern university, was founded here in 1957. The Rabat-Salé tramway, opened in 2011, crosses the Bou Regreg River to link the capital with Salé. Along the river, the Bou Regreg valley between the two cities has been redeveloped with a marina, promenades and new cultural buildings.

The city is also a diplomatic center. Besides the foreign embassies, it hosts the headquarters of the Islamic World Educational, Scientific and Cultural Organization (ICESCO) and the general secretariat of the Arab Maghreb Union, a regional group of five North African states.

Common confusions

The most common mistake is thinking Casablanca is the capital, partly because of the famous 1942 film named after it. Others name Marrakesh, the best-known city among tourists, or Fez, the old royal capital. Rabat has held the title for more than a century.

Morocco is not the only country whose capital is smaller than its largest city: other examples include Canada (Ottawa and Toronto) and Australia (Canberra and Sydney). For a neighbor across the Strait of Gibraltar, see What is the capital of Spain?

More on Big World List

Frequently asked questions

Is Casablanca the capital of Morocco?

No. Casablanca is Morocco's largest city and economic center, with about 3.2 million people in the city itself, but the capital is Rabat, about 90 km (56 miles) to the northeast along the Atlantic coast.

When did Rabat become the capital of Morocco?

Rabat became the administrative capital in 1912, when France set up its protectorate over Morocco and chose the city as the seat of its administration. It remained the capital after independence in 1956.

What was the capital of Morocco before Rabat?

Morocco had no single permanent capital for most of its history. Fez, Marrakesh and Meknes all served as royal capitals under different dynasties, and the sultan's court often moved between them.

How many people live in Rabat?

The 2024 census counted 515,619 residents in the city of Rabat, according to Morocco's High Commission for Planning. The wider urban area, including Salé and Témara, has around 2 million people.

What are the four imperial cities of Morocco?

The four imperial cities are Fez, Marrakesh, Meknes and Rabat. Each served as a royal capital at some point in Moroccan history, and all four have old towns listed as UNESCO World Heritage Sites.

What is Rabat famous for?

Rabat is known for the Hassan Tower, the Mausoleum of Mohammed V, the clifftop Kasbah of the Udayas and the ruins of Chellah. Its modern and historic city was listed as a UNESCO World Heritage Site in 2012.

Sources and further reading

  • High Commission for Planning (Morocco), "General Population and Housing Census 2024"
  • UNESCO World Heritage Centre, "Rabat, Modern Capital and Historic City: a Shared Heritage"
  • Encyclopaedia Britannica, "Rabat"

Cite this page

“What Is the Capital of Morocco? Rabat Explained.” Countries of the World, https://countries.bigworldlist.com/questions/what-is-the-capital-of-morocco/.

Morocco: more questions and guides