Bangalore became a capital after the Fourth Anglo-Mysore War.
The old city developed in the dominions of the Maharaja of Mysore and was made capital of the Princely State of Mysore , which existed as a nominally sovereign entity of the British Raj.
It was captured by the British after victory in the Fourth Anglo-Mysore War -LRB- 1799 -RRB- , who returned administrative control of the city to the Maharaja of Mysore.
