Beginning with 1637 the Ahoms faced a number of reverses, including the death of Bali Narayan in Singari battle in 1638. His son ascended the throne and became the king of Darrang (excluding Tezpur). On the other hand, the Ahoms ruled the eastern part of Darrang (the present Sonitpur) through Kalia Bhomora Borphukan, stationed at Kaliabor. In 1639 by the Treaty of Asurar Ali between the Ahom general Momai Tamuli Borbarua and the Mughal commander Allahyar Khan the river Barnadi was fixed as the boundary between the Mughal empire and the Ahom kingdom. Darrang remained with the Ahoms ruled by Mahendra Narayan, son of Bali Narayan. Mahendra Narayan was succeeded by Chandra Narayan and then by Surya Narayan. Kamrup Following the war of succession after Shah Jahan in 1657, the Ahoms reoccupied Kamrup. Again, this possession did not last long. In 1662 the Mughal general Mir Jumla marched up to Gargaon, the Ahom capital, and set up camp. But he could not consolidate Mughal rule in the region. Nevertheless, he struck an agreement with the Ahom king that included war indemnities; but he died on his journey back to Dhaka. The Ahoms again captured Kamrup in 1667, and fended off an entrenched Mughal attack led by Kachwaha Rajput Raja Ram Singh in 1671 in the celebrated Battle of Saraighat. In March 1679, the Ahom viceroy in Guwahati, Laluk-sola Borphukan, handed over Kamrup to Nawab Mansur Khan, the deputy of Sultan Azamtara, the son of Aurangzeb and the then governor of Bengal. Mansur Khan attacked Darrang in 1682, captured Surya Narayan and installed his 5-year-old brother as the ruler of Darrang. But that influence did not last for long. In that year itself, the Ahoms, under the kingship of Gadadhar Singha, attacked Kamrup and removed the Mughals for good. In the meantime, the influence of the Raja of Darrang decreased, and the Ahoms took possession of Kamrup till the end of their rule. Bijni The Bijni branch of the Koch dynasty controlled its feudatory from the present-day Bijni town from 1671 till 1864 when it was attacked by Jhawlia Mech, a chieftain from Bhutan. This resulted in the capital moving to Dumuria. The earthquake of 1897 destroyed the royal palaces and the capital moved again, first to Jogighopa and then finally to Abhayapuri in 1901. The control of the Bijni branch ended after the Indian government took direct control of the