In 1766 Haider Ali of Mysore defeated the Zamorin of Calicut and absorbed Malabar district to his state. After the Third Mysore War (1790–1792), Malabar was placed under the control of the British East India company. Later the status of the Zamorins as independent rulers was changed to that of pensioners of the company.