During the early eighteenth century, the entire Indian subcontinent was under the control of the
Mughul Empire, however after
Bahadur Shah I's death the empire started declining. The empire split among viceroys and other local rulers with bitter fight among each other. In the 1740s and 1750s French and British colonial companies became more active in these local conflicts, and by the
Third Carnatic War (1757–1763), the British gained
Bombay,
Madras, and
Calcutta and emerged single largest among other colonial powers. Their eastern holdings at Madras were strongly influenced by treaties with the
Nawab of Carnatic,
Muhammed Ali Khan Wallajah, whose territory surrounded Madras. The other major powers in the east were the
Nizam of Hyderabad, formerly a vassal of the Mughul Empire but declared nominal independence in the 1720s, held in the 1760s by
Asaf Jah II, and the
Sultanate of Mysore, which occupied the high plains between the
Eastern and
Western Ghats, the mountain ranges separating the coastal plains of India from the interior. Nominally ruled by the
Wodeyar dynasty, control of Mysore had in 1761 come into the hands of
Hyder Ali, a Muslim military leader. Each of these powers intrigued with and against the others, and sought to draw the power of the French and British colonial companies to serve their objectives. The colonial powers sought to influence the local powers to gain either direct control of territory, or the revenues from territory nominally controlled by a local ruler beholden to them for financial and military support. Since European military training was significantly better than local practices, small numbers of disciplined European or European-trained forces could defeat significantly larger Indian armies composed mainly of poorly trained infantry and cavalry. ==Battle==