Moulay Brahim, or My Brahim, is a small town and rural commune in Al Haouz Province of the Marrakesh-Safi region of Morocco. At the time of the 2014 census, the commune had a total population of 8698 people; the town itself had a population of 3098. The town is named after the Moroccan sufi saint Moulay Brahim.
On 8 September 2023, an earthquake with a magnitude of 6.8 M<sub>w</sub>, struck the town which led to many homes collapsing.