Dar al-Makhzen Mosque (, also known as the 'Makhzen mosque' or 'the ancient mosque'; built 1786âÂÂ87) is the oldest standing mosque in Casablanca, Morocco. It is located in the old Medina of Casablanca in the arrondissement Sidi Belyout.
According to Othmane El Achari, the mosque was originally called the mosque of Sultan Muḥammad III b. ÿAbd AllÃÂh (), then as the Great Mosque () as it was the largest mosque in the port city. It was then called Dar al-Makhzen Mosque for the neighboring Makhzen building, which later became the shrine of Sidi Bousmara. According to Mustapha Naciri, the Makhzen building was originally a mahkama in which a group of who would adjudicate general and social cases.
The mosque was built in 1786âÂÂ87 (1201 Hijri) in the rule of Sultan Muḥammad III b. ÿAbd AllÃÂh (1757âÂÂ1790), who rebuilt Casablanca after the earthquake of 1755 and constructed its port. In 1786, the Spanish consul remarked that it as a "good" mosque in a letter to Count Floridablanca describing the "sizable construction works" underway in the city.
It was expanded under Sultan Hassan I (r. 1873âÂÂ1894).
It was renovated under King Muhammad V.