Kozhikode and its suburbs formed part of Polanadu ruled by Polarthiri. The Eradi marched with his Nairs towards Panniyankara and besieged the Polarthiri at his base, resulting in a 48-year-long standoff. The Eradi was unsuccessful, and then he propitiated the Bhagavati, bribed the followers of Polarthiri and even the consort of the ruler of Polanadu and won them to his side.