 The subsequent Balkh campaign in 1647 against them was led by Aurangzeb, and cost the Mughal empire 20 million rupees along with the recently acquired Balkh and Badakshan.In 1639, the armies of Shah Safi of Persia captured Bamyan and it appeared that they would attack Kandahar next.Shah Jahan, assisted by Kamran Khanand Malik Maghdood, had marched on Kandahar and negotiated the surrender from the Persian commander, Ali Mardan Khan, in 1638.