Trips Places Foods Stories Newsletters

Take your next trip with Atlas Obscura!

Our small-group adventures are inspired by our Atlas of the world's most fascinating places, the stories behind them, and the people who bring them to life.

Visit Adventures
Trips Highlight
Puglia Italy - Matera
Italy • 8 days, 7 nights
Southern Italy: Castles, Caves & Coastal Treasures in Puglia
from
Turkmenistan Gates of Hell Darvaza crater
Turkmenistan • 10 days, 9 nights
Turkmenistan & the Gates of Hell
from
View all trips
Top Destinations
Latest Places
Most Popular Places Random Place Lists Itineraries
Add a Place
Download the App
Top Destinations
View All Destinations »

Countries

  • Australia
  • Canada
  • China
  • France
  • Germany
  • India
  • Italy
  • Japan

Cities

  • Amsterdam
  • Barcelona
  • Beijing
  • Berlin
  • Boston
  • Budapest
  • Chicago
  • London
  • Los Angeles
  • Mexico City
  • Montreal
  • Moscow
  • New Orleans
  • New York City
  • Paris
  • Philadelphia
  • Rome
  • San Francisco
  • Seattle
  • Stockholm
  • Tokyo
  • Toronto
  • Vienna
  • Washington, D.C.
Latest Places
View All Places »
Pinal Airpark
Note the chrysanthemum crests.
Hachiman Bridge
Clarendon War Memorial.
Clarendon War Memorial
This fried chicken is one of Bangkok’s most famous.
Gai Tord Jae Kee
Latest Places to Eat & Drink
View All Places to Eat »
This fried chicken is one of Bangkok’s most famous.
Gai Tord Jae Kee
Chefs Aruss Lerlerstkull and Atcharaporn Kiatthanawat lean into regional traditions.
Charmgang
The khao soi at Gedhawa comes with a rich, coconutty broth.
Gedhawa
At Nai Mong Hoi Thod, the oyster omelet is worth waiting for.
Nai Mong Hoi Thod
In this deceptively simple dish, top-quality ingredients are paramount.
Kor Panich
Recent Stories
All Stories Video Podcast
Most Recent Stories
View All Stories »
Haleakalā National Park’s summit region, shrouded in the pre-dawn fog.
Beware the Legends Behind These National Park Souvenirs
For Aguilar-Carrasco, nature is a powerful reminder of the interconnectedness of all life.
How Can National Parks Be Made Accessible to All? AO Wants to Know.
Podcast: Finding ‘The Great Gatsby’ in Louisville
Here’s which treats you can safely lug home without risking a fine.
Dear Atlas: What International Food Can I Legally Bring Into the U.S.?

No search results found for
“”

Make sure words are spelled correctly.

Try searching for a travel destination.

Places near me Random place

Popular Destinations

  • Paris
  • London
  • New York
  • Berlin
  • Rome
  • Los Angeles
Trips Places Foods Stories Newsletters
Sign In Join
Places near me Random place
All Morocco Rabat Kasbah of the Udayas

Kasbah of the Udayas

Morocco’s modern capital was once a haven for Barbary pirates, who went so far as to establish a republic of their own.

Rabat, Morocco

Added By
Fred Cherrygarden
Email
Been Here
Want to go
Added to list
CAPTION
  Fred Cherrygarden / Atlas Obscura User
  Fred Cherrygarden / Atlas Obscura User
  Fred Cherrygarden / Atlas Obscura User
  Fred Cherrygarden / Atlas Obscura User
  Fred Cherrygarden / Atlas Obscura User
  Fred Cherrygarden / Atlas Obscura User
  Fred Cherrygarden / Atlas Obscura User
  Fred Cherrygarden / Atlas Obscura User
Bab Ouidaia, the Gate of the Kasbah.   Robert Prazeres
Central courtyard of the Oudaya Museum.   Robert Prazeres / CC BY-SA 4.0
Casbah des Oudaias.   Véronique Dauge / CC BY-SA 3.0 IGO
  Fred Cherrygarden / Atlas Obscura User
  Fred Cherrygarden / Atlas Obscura User
  Fred Cherrygarden / Atlas Obscura User
  Fred Cherrygarden / Atlas Obscura User
The sqala and the Corsairs’ Tower.   Seth767
By Dr Chris Stout   drchrisstout / Atlas Obscura User
By Dr Chris Stout   drchrisstout / Atlas Obscura User
Been Here
Want to go
Added to list

About

A kasbah in the capital of Morocco may not seem the most obscure of places. But what many don't know is that many years ago, Rabat was also the capital of a short-lived pirate republic.

Located on an Atlantic coast at the mouth of the river Bou Regreg, the city of Rabat was founded in 1146 as a military base of the Almohad Empire. The third Almohad caliph, Yaqub al-Mansur, built the kasbah, as well as the Hassan Tower and the city walls. After his death the empire started to collapse, and Rabat was all but abandoned.

In the 17th century, Spain expelled a large number of Moriscos, or descendants of Muslims who were forced to convert to Christianity. Some of them made their way to Rabat and settled in the city, and some of that group turned to piracy and slave trade, mainly preying on Spanish vessels and offering a tenth of their loot to the king of Morocco.

Eventually the Moorish corsairs decided to rebel against the crown. In 1624, together with the Salé Rovers from the opposite side of the Bou Regreg, led by the Dutch pirate Jan Janszoon, they declared Rabat an autonomous state known as the Republic of Salé or the Corsair Republic.

The republic lasted for 44 years, until the Sultan Al-Rashid of the Alaouite dynasty (which still rules Morocco to this day) seized Rabat and Salé and held them under his control, uniting the kingdom. But that doesn’t mean it got rid of the Barbary pirates; they continued to use the port of Rabat and remained active to the early 19th century, well after the Golden Age of Piracy had ended.

The Kasbah of the Udayas served as an important center of the Republic of Salé. Many renovations were made during its time, including platforms, fortifications and a round tower overlooking the Bou Regreg, which was known as the Corsairs' Tower. A royal pavilion was built under the reign of Alaouite sultan Moulay Ismail, who is responsible for the settling of the Udaya Arab tribe in Rabat.

Today, the kasbah, along with the adjacent medina, is a popular attraction in Rabat. It contains a mosque, a large museum (housed in Moulay Ismail's pavilion), Andalusian Gardens and a residential neighborhood, known for its stunning blue and white walls. In 2012, it was granted the status of World Heritage Site by UNESCO.

Related Tags

Pirates Islam Religion Fortresses Sacred Spaces
Atlas Obscura Adventures

Flavors of Morocco: Souks, Spices & Saharan Stars

A Moroccan Culinary Adventure from Marrakech to Essaouira.

Book Now

Community Contributors

Added By

Fred Cherrygarden

Edited By

drchrisstout, Koraine

  • drchrisstout
  • Koraine

Published

March 5, 2020

Edit this listing

Make an Edit
Add Photos
Sources
  • https://www.desertmoroccoadventure.com/things-to-do/kasbah-of-the-udayas/
  • https://www.journeybeyondtravel.com/blog/kasbah-des-udayas-morocco.html
  • https://www.morocco.com/blog/rabat-chellah-gardens-and-oudayas-kasbah/
Kasbah of the Udayas
Lot Abtal Numero 37 Temara
Rabat, 12000
Morocco
34.033044, -6.835354
Get Directions

Nearby Places

Sidi Ben Achir Cemetery

Salé, Morocco

miles away

Borj Adoumoue

Salé, Morocco

miles away

La Sqala

Casablanca, Morocco

miles away

Explore the Destination Guide

Photo of Morocco

Morocco

Africa

Places 74
Stories 8

Nearby Places

Sidi Ben Achir Cemetery

Salé, Morocco

miles away

Borj Adoumoue

Salé, Morocco

miles away

La Sqala

Casablanca, Morocco

miles away

Explore the Destination Guide

Photo of Morocco

Morocco

Africa

Places 74
Stories 8

Related Stories and Lists

History Tour: The Golden Age of Piracy

List

By Jonathan Carey

Related Places

  • Grand Mosque of Mopti

    Mopti, Mali

    Grand Mosque of Mopti

    Every year, people come together to cover this mud-brick mosque with a fresh layer of earth.

  • A dome of Sultan Mosque, with the ring of bottle bases visible at the bottom.

    Singapore

    Soy Sauce Bottles of Sultan Mosque

    A ring of soy sauce bottle bases decorate an important Singaporean landmark.

  • Overview / sea view

    Greece

    Castle of Agia Mavra (Santa Maura)

    A seaside castle complex that stood through centuries of conquests.

  • Brooklyn, New York

    David's Brisket House

    A Jewish deli run by Yemeni Muslims in an Afro-Caribbean neighborhood is quintessential Brooklyn.

  • Dawn on Charles V palace in Alhambra, Granada, Spain.

    Granada, Spain

    Muslim Gravestones of the Alhambra

    Spanish architects used seized Muslim gravestones to rebuild parts of the fortress.

  • Jama Masjid, Ahmedabad.

    Ahmedabad, India

    Jama Masjid

    This 15th-century mosque is a beautiful blend of Hindu and Islamic architecture.

  • The Mosque of the Divinity in Dakar.

    Dakar, Senegal

    Mosque of the Divinity

    This unique religious structure is an architectural gem with arresting ocean views.

  • Fatemeh Maasoume Shrine at night.

    Qom, Iran

    Fatemeh Maasoume Shrine

    One of the holiest Shi'i shrines in Iran honors the life and death of a learned noblewoman who became a saint.

Aerial image of Vietnam, displaying the picturesque rice terraces, characterized by their layered, verdant fields.
Atlas Obscura Membership

Become an Atlas Obscura Member


Join our community of curious explorers.

Become a Member

Get Our Email Newsletter

Follow Us

Facebook YouTube TikTok Instagram Pinterest RSS Feed

Get the app

Download the App
Download on the Apple App Store Get it on Google Play
  • All Places
  • Latest Places
  • Most Popular
  • Places to Eat
  • Random
  • Nearby
  • Add a Place
  • Stories
  • Food & Drink
  • Itineraries
  • Lists
  • Video
  • Podcast
  • Newsletters
  • All Trips
  • Family Trip
  • Food & Drink
  • History & Culture
  • Wildlife & Nature
  • FAQ
  • Membership
  • Feedback & Ideas
  • Community Guidelines
  • Product Blog
  • Unique Gifts
  • Work With Us
  • About
  • FAQ
  • Advertise With Us
  • Advertising Guidelines
  • Privacy Policy
  • Cookie Policy
  • Terms of Use
Atlas Obscura

© 2025 Atlas Obscura. All Rights Reserved.