Why is it so loud in the medina at night?

The short answer

Stone walls carry sound. Courtyards amplify it. No buffer between a wedding next door and your pillow.

The medina is a residential neighbourhood that's also a tourist destination, a commercial district, and increasingly an event venue. Riads converted to restaurants with live music. Rooftop bars with speakers. The density that makes it beautiful makes it acoustically porous.

Law 11-03 (Article 47) requires noise nuisance to be eliminated or reduced. Fines: 1,000 to 20,000 dirhams, doubled for repeat offences. The Penal Code (Article 609, paragraph 23) addresses nocturnal disturbances.

If the noise is disruptive, speak to your riad host. They know the rhythms of their neighbourhood — which nights events are scheduled, which rooms face away from the source. Some hosts provide earplugs.