Mustafa ibn Mahmud (1786–1837) (Arabic: مصطفى باي بن محمد) was the ninth leader of the Husainid Dynasty and the ruler of Tunisia from 1835 until his death in 1837.