
After the fall of the Vijayanagara Empire in 1565 in the Battle of Talikota, Bangalore's rule changed hands several times. Kempe Gowda declared independence, then in 1638, a large Adil Shahi Bijapur army led by Ranadulla Khan and accompanied by his second in command Shāhji Bhōnslē defeated Kempe Gowda III