Bangalore was captured after the Fourth Anglo-Mysore War.
Bangalore . In 1638 , the Marāthā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 . 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 .