Answer
The Marathas and the Nizam of Hyderabad allied with the British during the Fourth Anglo-Mysore War. This alliance was crucial in weakening the power of Tipu Sultan, the ruler of Mysore, and ultimately led to his defeat in 1799. The support of these two powerful Indian states allowed the British to consolidate their control over southern India and expand their influence in the region.