The Fourth Anglo-Mysore War was a conflict in South India between the Kingdom of Mysore against the British East India Company and the Hyderabad Deccan in 1798–99. This was the final conflict of the four Anglo-Mysore Wars. The British captured the capital of Mysore. The ruler Tipu Sultanwas killed in the battle.