Mahmud Shah Durrani (1769 - 1829) was the ruler of the Durrani Empire between 1801 and 1803, again between 1809 and 1818. He was the son of Timur Shah Durrani and half-brother of his predecessor, Zaman Shah. On July 25, 1801, Zaman Shah was deposed, and Mahmud Shah ascended to rulership. He then had a chequered career; he was deposed in 1803, restored in 1809, and finally deposed again in 1818. He died in 1829. Between his two stints, the country was ruled by Shoja Shah, another of his half-brothers.