When Hyder Ali died in 1782, his son Tipu Sultan deposed the weak Wodeyar, proclaimed himself Sultan.
Bangalore fort was captured by the British armies under Lord Cornwallis on 21 March 1791 during the Third Anglo-Mysore War and formed a centre for British resistance against Tipu Sultan,[REF] being incorporated into the British Indian Empire after Tipu Sultan was defeated and killed in the Fourth Anglo-Mysore War (1799).