General Keane was, for his service, elevated to the Peerage as Baron Keane of Ghazni. He left a small garrison in Ghazni and began to march his forces towards Kabul on July 30, 1839. When the Afghan ruler, Dost Muhammad, heard about the fall of Ghazni, he asked for terms of surrender but the British offer was exile in India, which was unacceptable to him. He fled Kabul towards Western Afghanistan and the Afghan army surrendered. The British installed their puppet, Shuja Shah Durrani, as the new ruler of Afghanistan.