Mysuru was ruled for most of five centuries by the Wodeyar dynasty, first as chiefs under the Vijayanagara Empire and, after its fall, as kings of the Kingdom of Mysore. In the 18th century power passed to Hyder Ali and Tipu Sultan, who ruled from the island fortress of Srirangapatna nearby. After Tipu died there in 1799, the British restored the Wodeyars and Mysuru again became the capital.
The late 19th and early 20th centuries were Mysuru's golden age. Under maharajas such as Krishnaraja Wodeyar IV and his dewan Sir M. Visvesvaraya, the state built dams, railways, a university and industries, and the city was laid out with parks, broad roads and grand buildings. The present Mysore Palace (Amba Vilas) was built after the old wooden palace burnt in 1897 and completed in 1912.
After independence the kingdom joined India and Mysuru gave its name to the state until it was renamed Karnataka in 1973. The royal family still performs the Dasara rituals in the palace.