(poleygar), was made the prefect of Mysore and the surrounding regions his overlord Harihara II of the Vijayanagara Empire in 1399. With this, Yaduraya assumed the title Raja and the honorary surname Wadiyar. He and his successors ruled the fiefdom of Mysore as rajas under the vassalage of the Vijayanagara Empire until around 1553. Independent kingdom The Vijayanagara Empire disintegrated in 1565. With the fall of the empire, Mysore became an independent kingdom, the first independent king being Timmaraja Wodeyar II, the great-great-great-grandson of the founding ruler Yaduraya. Thimmaraja's nephew Raja Wodeyar I expanded the borders of the kingdom. In 1610, he moved the capital from Mysore to nearby island town of Srirangapattana on the river Kaveri, which provided strategic protection against military attacks. Raja Wadiya's cousin and successor down the line Kanthirava Narasaraja I expanded the frontiers of the kingdom to Trichy in present-day Tamil Nadu. The kingdom reached its peak under Kanthirava's grand-nephew Devaraja Wodeyar II, who reformed the administration of the kingdom by dividing it into 18 departments (called chavadis); he also introduced a coherent system of taxation. Sultanate From 1760 to 1799, the rule of the Wadiyar dynasty was essentially nominal, with real power firmly in the hands of the Commander-in-chief and later self-proclaimed sultan, Hyder Ali, and his son and successor Tipu. The two, ruling the sultanate from Srirangapattana, expanded the kingdom aggressively. Independent kingdom in a subsidiary alliance After Tipu Sultan's execution at the end of the Battle of Srirangapattana during the Third Anglo-Mysore War in 1799, the Crown restored the Kingdom to Wadiyars under a subsidiary alliance requiring an annual pay as subsidy to the Crown. The capital was moved back to Mysore. The four-year-old boy Krishnaraja Wadiyar III, son of the last Wadiyar king, Chamaraja Wadiyar VIII, was anointed as the Maharaja of Mysore. In 1831, on a specious plea of non-payment by Maharaja Krishnaraja Wadiyar III, the kingdom was placed under Mysore Commission that lasted from 1831 to 1881. Mark Cubbon and L. B. Bowring are among the well-known commissioners of the period. In 1868, upon Krishnaraja Wadiyar III's demise, his five-year-old adopted son Yuvaraja Chamaraja Wadiyar X became the heir to the throne. When in 1881 he attained the age of majority, through an act of parliament, the British Parliament once again transferred power back to the Wadiyars. The maharaja changed the English spelling of their royal name from Wodeyar