In 1766 Hyder Ali returned to the Malabar, this time at the invitation of the raja of Cannanore, who sought independence from the Zamorin, the ruler of Calicut who held sway over Cannanore. Hyder also claimed a debt of tribute from the Zamorin, who had supported Hyder's opponents in earlier campaigns. After a difficult campaign, Hyder reached Calicut, where the Zamorin, after promising to make payment, failed to deliver. Hyder placed the Zamorin under house arrest and had his finance minister tortured. Fearing similar treatment, the Zamorin set fire to his palace and perished in the flames, ending Eradi dynastic rule of Calicut. After establishing control of Calicut, Hyder departed, but was forced to return several months later when the Nairs rebelled against the rule of his lieutenant, Reza Sahib. Hyder's response was harsh: after putting down the rebellion, many rebels were executed, and thousands of others were forcibly relocated to the Mysorean highlands.