The Marathas, the Nizam and the British marched towards Mysore. But Hyder won over the Marathas and the Nizam. The British were isolated. Haider won after some setbacks. He forced the British to sign a peace treaty in 1769, according to which both Haider and the British agreed to help each other in case of any ** by a third power.