

Following India's independence in 1947, Bangalore became the capital of Mysore State, and remained the capital when the new Indian state of Karnataka was formed in 1956. In 1809, the British shifted their cantonment to Bangalore, outside the old city, and a town grew up around it, governed as part of British India. The old city developed under 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. The city was captured by the British East India Company after victory in the Fourth Anglo-Mysore War (1799), who returned administrative control of the city to the Maharaja of Mysore.

When Haider Ali seized control of the Kingdom of Mysore, the administration of Bangalore passed into his hands. After the fall of the Vijayanagar empire, Kempe Gowda declared independence in 1638, a large Adil Shahi Bijapur army defeated Kempe Gowda III, and Bangalore was given to them as a jagir (feudal estate).The Mughals later captured Bangalore and sold it to Chikkadevaraja Wodeyar (1673–1704), the then ruler of the Kingdom of Mysore. In 1537 CE, Kempé Gowdā – a feudal ruler under the Vijayanagara Empire – established a mud fort, considered the foundation of modern Bangalore and its oldest areas, or petes, which still exist. The city's history dates back to around 890 CE, as found in a stone inscription found at the Nageshwara Temple in Begur, Bangalore. It also ranks among the highest Indian cities in terms of global livability rankings as well.

In the Ease of Living Index 2020 (published by the Ministry of Housing & Urban Affairs), it was ranked the most livable Indian city with a population of over a million. It has been an aerospace & defense electronics hub from 1960's onwards housing multiple public sector companies such as Antrix Corporation, BEML, Bharat Electronics, DARE, Electronics and Radar Development Establishment, ISRO, HAL, ITI Ltd., KIOCL, National Aerospace Laboratories, NewSpace India Limited and NGEF. Bangalore is widely regarded as the "Garden city of India" because of it's cool climate, multiple botanical gardens and parks. Its elevation is the highest among the major cities of India. Located on the Deccan Plateau, at a height of over 900 m (3,000 ft) above sea level, Bangalore has a pleasant climate throughout the year. It has a population of more than 8 million and a metropolitan population of around 11 million, making it the third most populous city and fifth most populous urban agglomeration in India, as well as the largest city in South India, and the 27th largest city in the world. Bangalore ( / b æ ŋ ɡ ə ˈ l ɔː r/), officially Bengaluru ( Kannada pronunciation: ( listen)), is the capital and largest city of the Indian state of Karnataka.
