Dhubri by defeating the Koch king and not the Mughals would form a central tenet in later Ahom diplomacy. Soon after, Aurangzeb occupied the Delhi throne. Mir Jumla II, pursuing Shah Shuja in Bengal, was appointed the Subahdar of Bengal in 1660 and asked to retake Assam. Mir Jumla marched in 1661 and defeated the Ahoms at successive encounters to finally take the Ahom capital Garhgaon. But the daga juddha (guerrilla warfare) of Atan Burhagohain and the rains succeeded in cutting off Mughal communication lines making it impossible for Mir Jumla to consolidate Mughal rule. Unaware of Mir Jumla's difficulties and unnerved by Baduli Phukan's defection, Jayadhwaj Singha sued for peace, an opportunity Mir Jumla seized on. The Treaty of Ghilajharighat (1663) brought an end to Mughal occupation of Garhgaon, but the conditions of this treaty were so severe that the Ahoms were soon resolved to reverse them. Ahom preparations for war After the humiliating defeat inflicted by Mir Jumla, the Ahom king Jayadhwaj Singha died in despair. On his deathbed, he exhorted his cousin and successor Chakradhwaj Singha to "remove the spear of humiliation from the bosom of the nation." There followed a complete overhaul of the Ahom kingdom. People who had dispersed due to Mir Jumla's invasion were rehabilitated in the appropriate khels, food and military productions were increased, new forts were constructed and garrisoned and an expeditionary army was organized under a new commander—Lachit Borphukan. Alliances were renewed with the Jaintia and the Kachari kingdoms. During this period Mughal imperial demands were tactfully and diplomatically rebuffed, but when the new faujdar of Guwahati, Firuz Khan, forced the matter in March 1667, the Ahoms were compelled to move. In August 1667 the Ahom army, under Lachit Borphukan and accompanied by Atan Burhagohain, sailed downstream to retake Guwahati. Ahoms retake Guwahati Lachit made Kaliabor, the old seat of the Borphukan, his base camp and advanced toward Guwahati along both banks of the Brahmaputra. On the north bank the Deka Phukan retook Bahbari in early September 1667. On the south bank, the Nausalia Phukan and others, moving on land and water, captured Kajali, Sonapur, Panikhaiti, and Titamara forts between the Kapili river and Guwahati. The Ahoms then reached Guwahati which was defended by five choukies on each bank of the Brahmaputra (north—Kanai-borosi-bowa, Hillar, Hindurighopa, Patduar and Korai; south—Latasil, Joiduar, Dharamduar, Duarguria and Pandu). With some loss, the Ahoms captured Shah