Answer
The Treaty of Mangalore, signed in 1784, marked the end of the Second Anglo-Mysore War between the British East India Company and the Kingdom of Mysore. The treaty restored the pre-war boundaries between the two powers and forced Mysore to cede the Malabar Coast to the British. It also established a defensive alliance between the two sides, requiring Mysore to assist the British in case of war.