The allies moved towards Cochin and marched upon the palace of the official Raja on 5February 1662. His family members had allied with Dutch. The dutch helped Cochin to get rid of the Portuguese-friendly king. The Portuguese-friendly king was killed in the subsequent battle along with two of his juniors. Cochin royal family appointed a new king, and ordered the Dutch to besiege the Portuguese fort. Cochin and the chief of Paliyam provided supplies to the Dutch, who faced heroic Portuguese resistance during the prolonged siege. The Native rulers of Porca and Cembakasseri kept the besieged supplied with provisions. Though disrupted by monsoon rains and the deaths of the ruler of Calicut and important Dutch officers, the garrison finally capitulated on January8, 1663. The terms of the capitulation were that all the unmarried Portuguese residents were returned to Europe, and all married Portuguese and Mestiços were transferred to Goa. The last governor of Portuguese Cochin was Inácio Sarmento. It was said that about four thousand people were banished and decades of Portuguese supremacy in Malabar came to an end. Fort Cochin now became the primary ally of the Dutch in South Asia.
