The Treaty of Mangalore was signed in 1784 between Tipu Sultan and the British East India Company, ending the Second Anglo-Mysore War. The other groups mentioned were often rivals or allies of Tipu at different times, but the 1784 peace specifically involved the British.