Places Foods Stories Newsletters
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 »
Leading into the crypt is an icon of the saint which may be venerated.
Crypt of St. Sophrony
Son Long Pagoda
Tantiusques
Julian’s Bower Medieval Labyrinth
Julian’s Bower Medieval Labyrinth
Latest Places to Eat & Drink
View All Places to Eat »
Pensão Amor
The Bundesbüdchen sits outside Bonn's UN Campus and many of the Bonn Republic's converted government buildings.
Bundesbüdchen
Food window and entrance of center.
Indian Arts Center
Steaming Tender Restaurant
Tiptree Jam Museum entrance.
Tiptree Jam Museum
Recent Stories
All Stories Video Podcast
Most Recent Stories
View All Stories »
The shelter contains ventilation units, oxygen tanks, and a large diesel generator that was designed to power the entire facility.
Discover Prague’s Hidden Secrets
13 Retro Diners Serving Up Classic Americana
Written by the Wild: How Alberta Inspired Some of Our Time’s Greatest Stories
The Old Bay House, formerly home to the local factor of the trading company, is now an inn you can stay at while visiting Fort Vermilion.
Chasing Auroras in Northern Alberta

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
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

Fred Cherrygarden profile photo
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.

Places

Discover your next amazing Atlas Place.

Get more unusual and extraordinary places each week with the Atlas Obscura Places newsletter.

Your newsletter subscriptions with us are subject to Atlas Obscura's Privacy Policy and Terms of Use.

Community Contributors

Fred Cherrygarden profile photo

Added By

Fred Cherrygarden

drchrisstout profile photo K Koraine profile photo

Edited By

drchrisstout, Koraine

  • drchrisstout profile photo drchrisstout
  • K Koraine profile photo 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/

Related Tags

Pirates Islam Religion Fortresses Sacred Spaces
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

Rick’s Café Casablanca

Casablanca, Morocco

miles away

Explore the Destination Guide

Photo of Morocco

Morocco

Africa

Places 92
Stories 8

Nearby Places

Sidi Ben Achir Cemetery

Salé, Morocco

miles away

Borj Adoumoue

Salé, Morocco

miles away

Rick’s Café Casablanca

Casablanca, Morocco

miles away

Explore the Destination Guide

Photo of Morocco

Morocco

Africa

Places 92
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.

  • David's Brisket House

    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
  • 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

© 2026 Atlas Obscura. All Rights Reserved.

Keep Reading. It’s Free.

Create a free account to uncover the rest of this place’s story and save places you want to visit.
Continue Reading