Tipu Sultan was a legendary ruler of Mysore who opposed British rule in South India in the late 18th century. He fought the British in the First and Second Anglo-Mysore Wars and dictated terms to the British in subsequent treaties. After his father Hyder Ali died, Tipu became the ruler of Mysore and focused on advancing his military, especially Mysorean rockets. However, the British remained a threat and the Fourth Anglo-Mysore War in 1799 resulted in Tipu's death during the Battle of Srirangapatna, bringing British rule to Mysore.