Casablanca's Ancienne Medina dates primarily to 1770, when Sultan Mohammed ben Abdallah initiated a total reconstruction following the catastrophic 1755 Lisbon earthquake. Unlike the sprawling medieval centers of Fes or Marrakesh, this 50-hectare district represents a specific era of Alawite military and commercial planning on the Atlantic coast. Travelers often find the scale more manageable, though the high-walled alleyways still require about two hours to navigate thoroughly without a guide.
The survival of the Old City owes everything to the defensive vision of the late 18th century. After Portuguese forces abandoned the site, the Sultan transformed the ruins into a fortified bastion designed to repel maritime threats from European powers. The surrounding ramparts stand between 6 and 8 meters high and stretch for approximately 4 kilometers, punctuated by 8 historical gates that regulated the flow of goods and people.
History in this quarter is split by the 1755 seismic event that leveled the earlier settlement known as Anfa. Sultan Mohammed ben Abdallah spent the subsequent decades rebuilding the city, eventually renaming it Dar al-Bayda—the White House—in reference to a 14th-century sanctuary located at the medina's entrance. I find that this relatively recent reconstruction makes the architecture feel less cramped and more structurally consistent than older Moroccan cities. The layout prioritizes ventilation and easy access to the nearby port, reflecting the Sultan's goal of creating a modern economic hub for the kingdom.
Situated at the northern edge of the medina, the Sqala is an 18th-century fortress completed in 1769. It remains the most recognizable military relic in the city, still housing a battery of Spanish-made bronze cannons that once guarded against Portuguese incursions. Most visitors enter through the southern gates, but I recommend starting at the Sqala for a better sense of geography—the elevated platforms offer clear sightlines toward the Atlantic and the modern Hassan II Mosque minaret. The interior now hosts a small garden and restaurant, providing a quiet reprieve from the commercial noise deeper in the quarter.
The internal layout is traditionally divided into three distinct sectors: the main medina for administrative and elite residential use, the Jewish Mellah, and the Tnaker district. Each zone maintains its own character, though the lines between them have blurred significantly since the French protectorate began in the early 1900s.
Religious life in the medina centers on the koubba of Sidi Belyout, the patron saint of Casablanca. The current domed mausoleum dates to 1881 and serves as a major pilgrimage site for locals seeking spiritual blessings. Legend describes Belyout as the father of lions—a hermit who lived among wild cats—and his presence is still invoked in daily greetings and local folklore. Nearby, the smaller sanctuary of Sidi Allal el-Kairouani honors the patron saint of fishermen, a reminder that the medina's identity is inextricably linked to the sea. These sites are strictly for Muslim prayer, but the ornate exterior tilework and the rhythmic chanting from within provide a window into the city's spiritual marrow.
Bab Marrakech is the most practical entry point for those arriving from the modern city center near Place des Nations Unies. This gate acts as a transition point between the 20th-century French architecture and the 18th-century winding streets. Inside, the market stalls are remarkably authentic; unlike the tourist-saturated bazaars of Marrakesh, you will find hardware, traditional Moroccan medicine, and daily groceries dominating the stalls. I suggest heading toward the Tnaker area for textiles and leather goods, as the prices here tend to be lower since it receives fewer international visitors. The streets are wider than those in Fes, making it less likely that you will get lost, but GPS signals can still be unreliable under the dense overhangs.
The Ancienne Medina is a residential and commercial district that is open 24 hours a day with free admission for all visitors. Most shops and stalls operate from 9:00 AM until 8:00 PM, though cafes and restaurants near the Sqala may stay open later into the evening.
Safety is generally high during daylight hours, but the atmosphere becomes noticeably grittier after sunset when the markets close. I recommend finishing your exploration by 6:00 PM and sticking to the main thoroughfares rather than the narrow residential cul-de-sacs to avoid confusion or unwanted attention.
Casablanca's version is much smaller, covering only 50 hectares, and is significantly younger because of the 1770 reconstruction. While Marrakesh is focused on tourism and ancient history, Casablanca's Old City is a functional, local neighborhood where you see residents buying everyday household essentials rather than souvenirs.
Plan for a 1.5 to 3-hour walk to cover the distance from Bab Marrakech to the Sqala bastion. This timeframe allows for brief stops at the various spiritual shrines and a short break for mint tea in one of the squares without feeling rushed.
Bab Marrakech is the most convenient gate because of its proximity to the tramway and the city center. However, entering from the northern port side near the Sqala allows you to walk downhill through the market, which is a less physically demanding route for most people.