The First Anglo-Mysore War (1767-69) ended inconclusively with the Treaty of Madras. The Second Anglo-Mysore War (1780-84) also ended inconclusively with the Treaty of Mangalore, although Hyder Ali had initial victories. The Third Anglo-Mysore War (1790-92) resulted in Tipu Sultan's defeat and the Treaty of Seringapatam, where he ceded territory. Only the Fourth War definitively ended Tipu's rule and life.