It was captured by the British after victory in the Fourth Anglo-Mysore War (1799), who returned administrative control of the city to the Maharaja of Mysore.
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.
By the end of the 13th century, Bangalore became a source of contention between two warring cousins, the Hoysala ruler Veera Ballala III of Halebidu and Ramanatha, who administered from the Hoysala held territory in Tamil Nadu.
Veera Ballala III had appointed a civic head at Hudi (now within Bangalore Municipal Corporation limits), thus promoting the village to the status of a town.
After Veera Ballala III's death in 1343, the next empire to rule the region was the Vijayanagara Empire, which itself saw the rise of four dynasties, the Sangamas (1336–1485), the Saluvas (1485–1491), the Tuluvas (1491–1565), and the Aravidu (1565–1646).
During the reign of the Vijayanagara Empire, Achyuta Deva Raya of the Tuluva Dynasty raised the Shivasamudra Dam across the Arkavati river at Hesaraghatta, whose reservoir is the present city's supply of regular piped water.
The two urban settlements of Bangalore – city and cantonment – which had developed as independent entities merged into a single urban centre in 1949.