Mahmud ibn Muhammad (10 July 1757 – 28 March 1824) (Arabic: أبو الثناء محمود باشا باي) was the seventh leader of the Husainid Dynasty and the ruler of Tunisia from 1814 until his death in 1824.