But as soon as the Haider Ali marched to Coimbatore, Nair rebellions broke out in Malabar. Some members of the Samoothiri family rebelled against the Muslim occupiers. This included the Eralpadu Krishna Varma with his nephew Ravi Varma. The princes were aided by the British East India Company. In 1768 the Samoothiri prince was restored in Kozhikode, agreeing to pay an annual tribute to Mysore. For nearly six years till 1774 nothing was heard about Hyder Ali. In 1774, Mysore forces under Srinivasa Rao occupied the city of Kozhikode. The prince retired to Travancore in a native vessel. The baton of resistance now passed to his nephew Ravi Varma. Ravi Varma helped the Company occupy Kozhikode in 1782. 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. The peace was soon broken and Tipu sent 6,000 troops under Mon. Lally to Kerala.