Following Tipu's death in the fourth war of 1799, large parts of his kingdom were annexed by the British, which signalled the end of a period of Mysorean hegemony over southern Deccan. The British restored the Wodeyars to their throne by way of a subsidiary alliance and the diminished Mysore was transformed into a princely state. The Wodeyars continued to rule the state until Indian independence in 1947, when Mysore acceded to the Union of India.