Asaf Jah II opposed the East India Company in 1766,[6] and initially allied himself with Haider Ali during the First Anglo-Mysore War, particularly during the Battle of Chengam,[12][13] but later abandoned Mysore's cause in 1768.