The early kings of Mysore were vassals of the Vijayanagara Empire,but that all changed at the time of the Talakad curse. The queen of Vijayanagara, Alemalamma, saw that her husband was severely ill and wounded, and thus offered his jewels to the deity at the temple. But alas, the Wadiyar family, wanted it, so she ran away. Before she killed herself by plunging into a lake, she uttered the words Let Talakad (a village) turn to sand, let Malangi (another village) turn into a whirlpool, let the Mysore Rajas fail to beget heirs every second generation. This curse has haunted the Mysore Rajas ever since.
Years later, a general in the army,Hyder Ali, took to power, as he had been gifted the throne by the Maharaja of Mysore. His son, Tipu Sultan, spent most of his life fighting the British, and died in his forties in the year 1799.
The Wadiyar dynasty was then restored and Diwan Purnayya, the Diwan who had served Hyder Ali and Tipu Sultan before that, ruled as Diwan.
Finally, in 1857, the British were forced to leave India because of the 1857 Indian Revolution. Mysore which had stayed neutral and slightly supportive of the British, was subject to humiliating terms, and Bhatkal and Coorg were given independence.
But Mysore stayed an independent state and is one of the major Dravidian powers.