 Mysore lost its status as the administrative centre of the kingdom in 1831, when the British commissioner moved the capital to Bangalore.It regained that status in 1881 and remained the capital of the Princely State of Mysore within the British Indian Empire until India became independent in 1947.The Mysore municipality was established in 1888 and the city was divided into eight wards.