He then had a chequered career ; he was deposed in 1803 , restored in 1809 , and finally deposed again in 1818 .
Mahmud Shah Durrani was the ruler of the Durrani Empire between 1801 and 1803 , again between 1809 and 1818 .