linguistic:paraphrasing
Third Anglo-Mysore War

In 1789, Tipu Sultan disputed the acquisition by Dharma Raja of Travancore of two Dutch-held fortresses in Cochin. In December 1789 he massed troops at Coimbatore, and on 28 December made an attack on the lines of Travancore, knowing that Travancore was (according to the Treaty of Mangalore) an ally of the British East India Company. On account of the staunch resistance by the Travancore army, Tipu was unable to break through the Tranvancore lines and the Maharajah of Travancore appealed to the East India Company for help. In response, Lord Cornwallis mobilised company and British military forces, and formed alliances with the Marathas and the Nizam of Hyderabad to oppose Tipu. In 1790 the company forces advanced, taking control of much of the Coimbatore district. Tipu counter-attacked, regaining much of the territory, although the British continued to hold Coimbatore itself. He then descended into the Carnatic, eventually reaching Pondicherry, where he attempted without success to draw the French into the conflict.

In 1791 his opponents advanced on all fronts, with the main British force under Cornwallis taking Bangalore and threatening Srirangapatna. Tipu harassed the British supply and communication and embarked on a "scorched earth" policy of denying local resources to the British. In this last effort he was successful, as the lack of provisions forced Cornwallis to withdraw to Bangalore rather than attempt a siege of Srirangapatna. Following the withdrawal, Tipu sent forces to Coimbatore, which they retook after a lengthy siege.

The 1792 campaign was a failure for Tipu. The allied army was well-supplied, and Tipu was unable to prevent the junction of forces from Bangalore and Bombay before Srirangapatna. After about two weeks of siege, Tipu opened negotiations for terms of surrender. In the ensuing treaty, he was forced to cede half his territories to the allies, and deliver two of his sons as hostages until he paid in full three crores and thirty lakhs rupees fixed as war indemnity to the British for the campaign against him. He paid the amount in two instalments and got back his sons from Madras.