Zaman Shah Durrani would succeed to the Durrani Throne following the death of his father, Timur Shah Durrani. This instigated civil war with his brothers, Mahmud Shah Durrani, and Humayun Mirza revolting against him. With Humayun centered in Kandahar, and Mahmud Shah centered in Herat. Zaman Shah would defeat Humayun and also force the loyalty of Mahmud Shah Durrani. Securing his position on the throne, Zaman Shah had led 3 campaigns into Punjab, with the first two campaigns capturing Lahore, but being forced to retreat due to issues from a possible Qajar invasion, or his brother, Mahmud Shah Durrani revolting. Zaman Shah embarked on his third campaign for Punjab in 1800 to deal with a rebellious Ranjit Singh. However, he was forced to withdraw, with his brother, Mahmud Shah Durrani revolting, Zaman Shah would be toppled from his reign, replaced by his brother, Mahmud Shah Durrani. However, just under 2 years in his reign, Mahmud Shah Durrani would be deposed by his brother, Shah Shuja Durrani, on 13 July 1803. Shah Shuja would attempt to consolidate the Durrani Realm, which had been long striven by civil war. Shah Shuja would later be deposed by his brother at the Battle of Nimla (1809), where Mahmud Shah Durrani would defeat and force Shah Shuja to flee, with Shah Mahmud usurping the throne again for his second reign beginning on 3 May 1809.