The Treaty of Mangalore was signed in March 1784, and both sides returned to their pre-war territorial status quo.