Mysore was named after the mythical Mahisuru, where the goddess Chamundi slew the demon Mahishasura. The Mysore dynasty was founded in 1399, but up until the mid-16th century its rulers, the Wodeyars, were in the service of the Vijayanagar emperor. With the fall of the empire in 1565, the Mysore rulers were among the first to declare their independence.
Apart from a brief period in the late 18th century when Hyder Ali and Tipu Sultan usurped the throne, the Wodeyars continued to rule until Independence in 1947. In 1956 when the new state was formed, the former maharaja was elected governor.