 By the Treaty of Mangalore, concluded in 1784, Malabar was restored to Mysore.In 1785 the oppression of revenue officers led to a rebellion by the Mappilas of Manjeri.As a reward for aiding to put down the rebels, and partly as an incentive, Tipu Sultan settled upon Ravi Varma a pension and a "jaghir" in 1786.