Capital of Morocco

Capital of Morocco

The capital of Morocco is Rabat, a graceful, history-rich city where the Bou Regreg River meets the Atlantic Ocean. While Marrakech, Fes, and Casablanca tend to dominate the travel spotlight, Rabat has quietly served as the political heart of the kingdom since Morocco gained independence in 1956. It’s home to the royal palace, the national parliament, foreign embassies, and a UNESCO-listed old town that blends Roman ruins, Almohad fortifications, and French colonial architecture in a single walkable city.

For travelers building a Morocco itinerary, Rabat is often underrated calmer than Marrakech, more historic than Casablanca, and easy to fold into a wider tour of the country’s imperial cities. If you’re planning a trip, our Best Morocco Tours can help you build an itinerary around Rabat and Morocco other major destinations, led by local drivers who know the country firsthand.

Capital of Morocco at a Glance

  • City: Rabat
  • Region: Rabat-Salé-Kénitra
  • Population (city proper, 2024 census): approximately 515,600
  • Metropolitan area population: roughly 2.1 million, Morocco second-largest metro area after Casablanca
  • Area: about 117 square kilometers (45 square miles)
  • Capital since: 1912 (French Protectorate), retained at independence in 1956
  • UNESCO recognition: designated a World Heritage Site in 2012 as “Rabat, Modern Capital and Historic City: a Shared Heritage”

Where Is the Capital of Morocco Located?

Morocco, officially the Kingdom of Morocco, sits in North Africa just across the Strait of Gibraltar from Spain, making it a natural meeting point between Africa and Europe for centuries. Within that setting, Rabat occupies a central position on the Atlantic coast, roughly halfway between Tangier in the north and Casablanca to the south, at the mouth of the Bou Regreg River opposite its sister city, Salé.

Morocco identity draws on Arab, Amazigh (Berber), Andalusian, African, and Mediterranean influences, and that mix shows up everywhere in the architecture, the languages spoken on the street, the festivals, and the hospitality visitors experience firsthand. Rabat institutions, universities, and cultural life reflect this same blend of old and new.

How to Get to Rabat

Rabat has its own airport, Rabat-Salé Airport, about 10 kilometers from downtown, though it currently has no direct train link, so a taxi (around 30 minutes) is the easiest way into the city. Many international travelers instead fly into Casablanca Mohammed V International Airport and take the ONCF train from Casa-Voyageurs station to Rabat-Ville, a comfortable ride of about an hour. Rabat is also well connected by Morocco national rail network, including the Al Boraq high-speed line, with regular service to Casablanca, Tangier, Fes, and Marrakech.

What Is the Capital of Morocco?

Many travelers ask directly: what is the capital of Morocco? The answer is Rabat, not Casablanca. Because Casablanca is Morocco largest city and its commercial engine, first-time visitors sometimes assume it holds capital status. It doesn’t. Rabat has served as the official seat of government since the French Protectorate period, and it kept that role after independence in 1956.

Is Casablanca the Capital of Morocco?

No. Casablanca is Morocco economic and financial capital the country’s biggest port city, its business hub, and home to the Hassan II Mosque, one of the largest mosques in the world. Rabat, by contrast, is the political and administrative capital, hosting the royal palace, parliament, government ministries, and foreign embassies. In short, Casablanca runs the economy, and Rabat runs the government.

Why Rabat Became the Capital of Morocco

Rabat became the capital of Morocco in 1912, when the French Protectorate chose the city for its coastal position, manageable size, and calmer environment compared to the more crowded interior cities of the time. When Morocco regained independence in 1956, the new government kept Rabat as the political capital rather than shifting to a larger city, largely because of its established infrastructure, stability, and symbolic weight as one of Morocco four imperial cities.

Today, Rabat houses the royal palace, the national parliament, government ministries, and the majority of foreign embassies in Morocco. Its economy leans on public administration, education, textiles, and a steadily growing cultural tourism sector, rather than the heavy industry or shipping that define Casablanca.

History of Rabat

Rabat story starts well before it became a capital. The site was first settled by Phoenician and later Roman communities, with the ruins at Chellah still visible today. In the 12th century, the Almohad ruler Abd al-Mu’min founded a fortified settlement here, and his successor, Yaqub al-Mansur, expanded it into a fortress city known as “Ribat al-Fath” the Fortress of Victory. Al-Mansur began construction on the Hassan Mosque, intended to be one of the largest mosques in the world, along with the city’s monumental gates and walls.

Construction stopped after al-Mansur’s death in 1199, and the city went through several quieter centuries. In the 17th century, Andalusian Muslims and Moriscos expelled from Spain resettled in the area, giving Rabat a boost in trade and craftsmanship, and for several decades the Bou Regreg estuary was home to the semi-independent Republic of Bou Regreg. By 1912, French colonial administrators recognized the city’s strategic coastal position and made it their capital, a status it has held ever since Morocco independence in 1956.

Top Places to Visit in Rabat

Rabat rewards visitors who like history without the crowds. It’s compact enough to explore in a day or two, and its main sites sit close to one another along the river and coastline.

Chellah

Chellah is one of the oldest historic sites in the capital of Morocco, first settled by the Phoenicians and later developed by the Romans before being reused as a royal Merinid necropolis. The walled complex holds old baths, temples, and gardens that are now home to storks and other wildlife, making a walk through Chellah feel like stepping into a quiet, overgrown piece of the past.

Kasbah of the Udayas

Built by the Almoravids and overlooking the Bou Regreg River and the Atlantic, the Kasbah of the Udayas is Rabat most photographed neighborhood. Its narrow lanes are painted in white and blue, and its Andalusian Garden offers a peaceful place to stop for mint tea while looking out over the water.

Hassan Tower and the Mausoleum of Mohammed V

The Hassan Tower, an unfinished 12th-century minaret, is one of Rabat’s most recognizable landmarks. Beside it stands the Mausoleum of Mohammed V, decorated with marble, zellij tilework, and a traditional green roof, and holding the tombs of King Mohammed V and King Hassan II.

Other Highlights of Rabat

Beyond the headline sites, visitors can walk sections of the old Almohad walls, visit the French-era St. Peter’s Cathedral, spend an afternoon at the Rabat Zoo, or relax in the Andalusian Gardens. Rabat’s Atlantic coastline also has beaches and waterfront paths that are popular with locals year-round.

How Far Is Rabat from Morocco Other Major Cities?

Rabat central coastal location makes it easy to combine with the rest of a Morocco itinerary:

  • Rabat to Casablanca: about 57 miles (92 km), roughly an hour by car or train see our tours from Casablanca for itineraries that include Rabat.
  • Rabat to Tangier: about 174 miles (280 km) along the Atlantic coast check our tours from Tangier for northern Morocco routes.
  • Rabat to Marrakech: roughly 200 miles (330 km), a common stop on longer circuits our tours from Marrakech cover this route in detail.
  • Rabat to Fes: around 125 miles (200 km), linking Morocco political and religious capitals see our tours from Fes for options.

Because of these manageable distances, Rabat works well either as a standalone stop or as a day trip between Morocco other imperial cities.

Lifestyle and Culture in Rabat

Life in the capital of Morocco has a noticeably different rhythm than Marrakech or Casablanca. Rabat’s wide boulevards, organized layout, and green spaces give it a reputation as one of the more comfortable and livable cities in the country. It’s also a genuine cultural center, with museums, art galleries, theaters, and a calendar of festivals covering music, literature, and the arts including the Mawazine Festival, typically held in spring, one of the largest music festivals in the world.

Arabic is Morocco official language and the most widely spoken in Rabat, with French commonly used in business, education, and government, and Amazigh languages spoken by many residents as well. English is increasingly understood in hotels, tourist sites, and by younger residents.

Is Rabat Safe to Visit?

Yes. Rabat is widely considered one of Morocco safest and cleanest cities, with a relaxed pace, wide organized streets, and a strong government and diplomatic presence that keeps the city center well maintained and easy to navigate on foot, even in the evening.

Best Time to Visit Rabat

The best time to visit Rabat is from May to October, when warm, mostly dry weather is ideal for exploring the medina, the kasbah, and the coastline on foot. The Atlantic keeps summer temperatures noticeably cooler here than in Marrakech or Fes. Winters, from December through February, are mild but can bring rain, so a light jacket is worth packing.

Visiting Rabat on a Private Morocco Tour

Because Rabat sits almost exactly between Casablanca and Tangier, it fits naturally into a wider Morocco itinerary rather than requiring a dedicated trip. As a family-run tour operator with local, English-speaking drivers, we build private, fully customizable itineraries that include Rabat alongside Morocco other imperial cities no fixed groups, no rushed schedules. Our 8-day Morocco tour from Casablanca is one example of a route that takes you through Rabat’s historic sites before continuing north toward Chefchaouen and the imperial cities beyond. If you have specific dates or interests in mind, get in touch and we’ll shape a route around them.

Is Rabat Worth Visiting?

Rabat is well worth including in a Morocco itinerary. As the capital of Morocco, it offers genuine history, government landmarks, and a UNESCO-listed old town, all without the crowds that come with more heavily touristed cities. It’s safe, walkable, and easy to pair with Casablanca, Fes, or points further north. Whether you’re traveling solo, as a couple, or with family, Rabat calmer pace and well-preserved heritage make it a memorable stop on any Morocco trip.