Rabat is Morocco’s political capital, a coastal city on the Atlantic at the mouth of the Bouregreg river that offers a calmer, more orderly counterpart to Marrakech and Fes. It draws far fewer tourists than Morocco’s better-known cities, which makes it an easier place to walk through its main sites without the crowds and persistent selling found elsewhere.
Why Rabat Is the Capital
Rabat became Morocco’s administrative capital during the French protectorate in the early 20th century, a role it retained after independence in 1956. Government ministries, the Royal Palace, and most foreign embassies are based here rather than in Casablanca, which remains the country’s largest city and main commercial and financial center. This split between political and commercial capital is part of why visitors sometimes confuse the two cities’ roles.
The Hassan Tower and Mausoleum of Mohammed V
The Hassan Tower is the unfinished minaret of a mosque begun in the late 12th century, intended to be one of the largest in the world before construction stopped after the death of the sultan who commissioned it. Rows of stone columns from the abandoned mosque still stand across the site, and the adjacent Mausoleum of Mohammed V, the resting place of Morocco’s former king and his sons, is one of the country’s most architecturally detailed royal monuments, guarded by mounted royal guards in traditional dress.
The Kasbah of the Udayas
Set on a hilltop overlooking the river mouth and the Atlantic, the Kasbah of the Udayas is a fortified quarter with narrow streets painted in the blue and white common to several Moroccan coastal towns. Inside its walls, the Andalusian Garden, laid out during the French protectorate period, offers a quiet, shaded contrast to the surrounding streets, and viewpoints along the kasbah walls look out over the water toward Rabat’s twin city of Sale on the opposite bank.
Chellah: The Roman and Merinid Ruins
A short distance from the city center, Chellah is a walled complex holding the ruins of a Roman settlement layered beneath a later Merinid necropolis, with crumbling minarets, old tombs, and gardens now shared with a large population of storks that nest on the ruined walls. This mix of Roman and Islamic-era history in a single site is unusual even by Morocco’s standards, and the storks nesting on the old walls have become one of the site’s more distinctive features.
The Royal Palace
The Royal Palace complex, known as the Dar al-Makhzen, sits within its own walled grounds and remains an active royal residence, so visitors can view its grand entrance gate and outer walls but cannot enter the palace itself. The scale of the gate and the surrounding plaza still gives a sense of the site’s importance, even without access to the interior.
The Medina and Kasbah Streets
Rabat’s medina is considerably smaller and less overwhelming than Marrakech’s, with a more relaxed pace and less aggressive selling from shopkeepers. It sits close to the Kasbah of the Udayas, making it easy to combine both in a single walk, and the covered market streets offer a more low-key souvenir-shopping experience than the country’s larger, more tourist-heavy medinas.
Sale: Rabat’s Twin City
Across the Bouregreg river from Rabat sits Sale, an older, less-visited city connected to the capital by bridges, a tram line, and a small ferry crossing near the kasbah. Sale has its own historic medina and shipyards with a long history of maritime trade, and a walk or short tram ride across the river gives a different, quieter perspective on the same waterway that shapes both cities. Few visitors make the crossing, which makes Sale a genuinely local alternative to Rabat’s more visited sites.
Food in Rabat
Rabat’s restaurant scene reflects its role as a capital city, with a wider range of international dining than most Moroccan cities outside Casablanca, alongside standard Moroccan staples like tagine, couscous, and grilled fish given the coastal setting. The area around the Kasbah of the Udayas and the oceanfront has a concentration of cafes with views over the water, a popular spot for mint tea in the late afternoon.
Where to Stay
Rabat’s accommodation ranges from international business hotels catering to diplomats and officials to smaller riads within or near the medina. Staying close to the medina and the Kasbah of the Udayas puts most of the city’s main sites within walking distance, while hotels further from the center suit visitors prioritizing proximity to the train station for day trips to Casablanca or onward travel.
How Rabat Compares to Casablanca
Casablanca is Morocco’s largest city and its economic engine, known for the Hassan II Mosque and a more modern, business-oriented atmosphere, while Rabat is smaller, calmer, and built more around government and diplomatic functions. Many visitors combine the two on a single trip, since they sit less than an hour apart by train, using Casablanca as an international arrival point and Rabat as a quieter add-on.
Common Misconceptions
A common assumption is that Casablanca, as Morocco’s largest and most internationally recognized city, must also be the capital. In practice, Rabat has held that role since the French protectorate period, and it is where the government, parliament, and Royal Palace are based. Another misconception is that Rabat lacks the historic character of Marrakech or Fes. Sites like Chellah and the Kasbah of the Udayas hold real depth, even if the city’s overall tourist infrastructure is smaller.
Best Time to Visit
Spring and autumn bring mild, comfortable temperatures for walking between Rabat’s main sites, while summer stays cooler than inland cities like Marrakech thanks to the city’s Atlantic coastal position. Winter is mild by international standards but can bring rain and a sharper coastal wind, worth planning around if visiting the more exposed sections of the Kasbah of the Udayas.
Getting to Rabat
Rabat is roughly 320 km from Marrakech, approximately 3.5 to 4 hours by road, or about 4 hours by train with a change in Casablanca. From Casablanca specifically, the train to Rabat takes about an hour, making it one of the more convenient day trips available from Morocco’s main international airport hub.
How Rabat Fits Into a Wider Morocco Trip
Rabat sits apart from the classic Marrakech-to-Merzouga desert route, so it generally works best as a stop along a northern loop through Casablanca and Fes, or as a day trip for visitors based in Casablanca. Travelers focused primarily on the desert and Marrakech’s medina often skip Rabat entirely, while those building a longer, multi-city Morocco itinerary tend to include it for its contrast with the rest of the country.
Getting Around Rabat
Rabat has a compact tram network connecting the medina, the train station, and Sale across the river, making it one of the easier Moroccan cities to navigate without a car. Petit taxis cover the rest of the city cheaply, and the main sites, the Hassan Tower, the Kasbah of the Udayas, and the medina, are close enough together that a visitor based centrally can walk between most of them in a single day.
A City Older Than Its Capital Status
Rabat’s history stretches back well before it became Morocco’s political capital in the 20th century, with settlement on the site dating to Roman times and continuing through various Amazigh and Arab dynasties. The city took on a more defensive, fortified character under the Almohads in the 12th century, the same period that produced the Hassan Tower, before centuries of relatively modest importance until the French protectorate elevated it to its current administrative role.
Frequently Asked Questions
Is Rabat the capital of Morocco?
Yes, Rabat is Morocco’s political capital and home to the Royal Palace, government ministries, and foreign embassies, while Casablanca remains the country’s largest city and commercial center.
How far is Rabat from Marrakech?
Rabat is roughly 320 km from Marrakech, approximately 3.5 to 4 hours by road or about 4 hours by train with a change in Casablanca.
What is the Hassan Tower?
The Hassan Tower is the unfinished minaret of a 12th-century mosque that was never completed, standing today alongside rows of stone columns and the Mausoleum of Mohammed V.
Is Rabat worth visiting compared to Marrakech?
Rabat offers a calmer, more orderly experience with fewer crowds and less aggressive selling than Marrakech, though it has a smaller range of souks and nightlife, making it a good day trip or short add-on rather than a primary base.
What is the Kasbah of the Udayas?
The Kasbah of the Udayas is a fortified hilltop quarter overlooking the mouth of the Bouregreg river, known for its blue-and-white painted streets and a garden built during the French protectorate period.
Can Rabat be visited as a day trip?
Yes, Rabat’s main sites are close enough together that a full day covers the Hassan Tower, the Kasbah of the Udayas, and the medina, making it a common day trip from Casablanca by train.
Browse our Marrakech desert tours for the classic inland route, or see our full range of Marrakech tours if you’re planning the rest of your Morocco trip around Marrakech.
