Mysore city was formerly the capital of the royal province of Mysore. According to Hindu mythology, the town is named after the demon Mahishasura, who was killed by the goddess Chamundeshwari. The Wadiyar royal family ruled Mysore from the 14th century, except for a period in the 18th century when Hyder Ali and his son Tipu Sultan controlled the region. Tipu expanded Mysore's territories through military campaigns until he was killed fighting the British.