Modern Bangalore was begun in 1537 by a vassal of the Vijayanagara Empire, Kempe Gowda I, who aligned with the Vijayanagara empire to campaign against Gangaraja (whom he defeated and expelled to Kanchi), and who built a mud-brick fort for the people at the site that would become the central part of modern Bangalore.
Kempe Gowda was restricted by rules made by Achuta Deva Raya, who feared the potential power of Kempe Gowda and did not allow a formidable stone fort.
During this period, the Bangalore region witnessed the migration of many groups — warriors, administrators, traders, artisans, pastorals, cultivators, and religious personnel from Tamil Nadu and other Kannada speaking regions.
A succession of South Indian dynasties, the Western Gangas, the Cholas and the Hoysalas, ruled the present region of Bangalore until in 1537 CE, Kempé Gowdā – a feudal ruler under the Vijayanagara Empire – established a mud fort considered to be the foundation of modern Bangalore.
In 1638, the Marāthās conquered and ruled Bangalore for almost 50 years, after which the Mughals captured and sold the city to the Mysore Kingdom of the Wadiyar dynasty.
In 1809, the British shifted their cantonment to Bangalore, outside the old city, and a town grew up around it, which was governed as part of British India.
Following India's independence in 1947, Bangalore became the capital of Mysore State, and remained capital when the new Indian state of Karnataka was formed in 1956.
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.