Tipu also stopped the tribute to Marathas which was promised by Hyder Ali. This brought Tipu in direct conflict with the Marathas, leading to Maratha–Mysore War Conflicts between Mysore (under Tipu) and Marathas: Siege of Nargund during February 1785 won by Mysore Siege of Badami during May 1786 in which Mysore surrendered Siege of Adoni during June 1786 won by Mysore Battle of Gajendragad, June 1786 won by Marathas Battle of Savanur during October 1786 won by Mysore Siege of Bahadur Benda during January 1787 won by Mysore Conflict ended with Treaty of Gajendragad in March 1787, as per which Tipu returned all the territory captured by Hyder Ali to Maratha Empire. Tipu agreed to pay four year arrears of tribute which his father Hyder Ali had agreed to pay to Maratha Empire (4.8 million rupees), The Marathas agreed to address Tipu sultan as "Nabob Tipu Sultan Futteh Ally Khan". Tipu would also release Kalopant and return Adoni, Kittur, and Nargund to their previous rulers. Badami would be ceded to the Marathas. Tipu would also pay an annual tribute of 12 lakhs, for an agreed period of 4 years to the Marathas. In return, Tipu Sultan would get all the region that he had captured during the war. This includes Gajendragarh and Dharwar. In Fourth Anglo-Mysore War maratha empire presented its support to the East India Company. The Invasion of Malabar(1766–1790) In 1766, when Tipu Sultan was just 15 years old, he got the chance to apply his military training in battle for the first time, when he accompanied his father on an invasion of Malabar. After the incident- Siege of Tellicherry in Thalassery in North Malabar, Hyder Ali started losing his territories in Malabar. Tipu came from Mysore to reinstate the authority over Malabar. After the Battle of the Nedumkotta (1789–90), due to the monsoon flood, the stiff resistance of the Travancore forces and news about the attack of British in Srirangapatnam he went back. 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