<P> But Ram Singha repeated his demands for the evacuation of Guwahati and reversion to the status quo ante of the year 1639 . The Barphukan remained firm in the position he had previously maintained . So war was inevitable between the two parties . But when the war was taking a more critical turn, Chakradhwaj Singha, the king of Assam died in April 1670 . He was succeeded by his brother Udayaditya Singha (Sunyatphaa, 1670 - 1672) </P> <P> Although the negotiations with the Mughals continued, but Ram Singha suspecting the sincerity of the Barphukan returned to attack . Udayaditya renewed the war and ordered the Barphukan to march with 20,000 men from Samdhara to Saraighat . The Ahoms were successful on land but their navy was forced to retreat . Barphukan arrived with more ships and Mughal army was beaten and the Ahoms also gained a second land victory . The Mughals could not stand the dash and fury of the Assamese onset . The Assamese were fighting for their life and liberty, and the Mughals for the mere luxury of triumph and territorial expansion . The Barphukan intended to chase them further still, but he was dissuaded by Achyutanda Doloi . The combat came to an end, and it was a decisive victory for the Assamese . This battle is known in history as the Battle of Saraighat . Ram Singha weakened by the repeated losses retreated to Rangamati in March 1671 . Hadira opposite to Goalpara became the Ahom frontier out post . Thus Mughals were evicted from Kamrup, strong fortifications were constructed at Guwahati . Thus Ahoms remained in undisturbed possession of their territories till 1679 A.D. </P> <P> In 1679, during the reign of Sudoiphaa or Parvatiya Raja, Laluk Barphukan, the Ahom viceroy of Gauhati, and his brother entered into a conspiracy and invited the Nawab of Bengal to take possession of the fort at Saraighat . Accordingly, in March Laluk Sola made over Gauhati to the Mughals in return for a promised reward of four lakhs of rupees and an assurance to support Laluk's candidature for the throne of Assam . </P> <P> In 1681, Gadapani was formally installed as sovereign of Assam under the name Gadadhar Singha (Supaatphaa, 1681 - 1696). His first act after taking reign was the dispatch of an army against Mansur Khan, which succeeded in recovering Gauhati in August 1682 after a decisive encounter at Itakhuli . The Ahoms expelled Mansur Khan from Gauhati and re-established their possession over the territories extending up to the river Manaha (Manas). Thus, Manaha (river Manas) became once more the western boundary of Assam and it remained as such till the occupation of the western Assam by the British in the year 1824 . </P>

Where was the last ahom mughal war fought