 Following Aurangzeb's death in 1707, his son Bahadur Shah I, former Governor of Peshawar and Kabul, was selected to be the Mughal Emperor.As Mughal power declined following the death of Emperor Aurangzeb, the empire's defenses were weakened.On 18 November 1738, Peshawar was captured from the Mughal governor Nawab Nasir Khan by the Afsharid armies during the Persian invasion of the Mughal Empire under Nader Shah.