Kingdom of Tanur, who was a vassal to the Zamorin of Calicut, sided with the Portuguese, against his overlord at Kozhikode. The ruler of Tanur also sided with Cochin. Many of the members of the royal family of Cochin in 16th and 17th centuries were selected from Vettom. However, the Tanur forces under the king fought for the Zamorin of Calicut in the Battle of Cochin (1504). However, the allegiance of the Muslim Mappila merchants in Tanur region remained with the Zamorin of Calicut. After securing the king in his throne, the Portuguese got permission to build a fort –- Fort Kochi (Fort Emmanuel) (after the reigning king of Portugal) – surrounding the Portuguese factory, to protect it from any further attacks. The entire work was commissioned by the Cochin Raja, who supplied workers and material. The Raja continued to rule with the help of the Portuguese. Meanwhile, the Portuguese secretly tried to enter into an alliance with the Zamorins. Later attempts by the Zamorin at conquering the Kochi port was thwarted by the Cochin Raja with the help of the Portuguese. Slowly, the Portuguese armoury at Kochi was increased, with the presumed notion of helping the raja protect Kochi. However, the measure led to decrease in the power of the Cochin Raja, and an increase in the Portuguese influence. From 1503 to 1663, Port of Kochi was controlled by Portugal, with the blessing of the Kochi Raja. Kochi remained the main base of the Portuguese in India till 1510. In 1530, Saint Francis Xavier arrived and founded a Christian mission. The following Portuguese period was difficult for the Jews living in the region, since the Inquisition was established in Portuguese India in 1560. Kochi hosted the grave of Vasco da Gama, the Portuguese viceroy, who was buried at St. Francis Church until his remains were exhumed and interred in Portugal in 1539. Soon after the time of Albuquerque, the Portuguese influence in Kerala declined. Dutch period (1663–1773) The Portuguese rule was followed by that of the Dutch, who had by then conquered Quilon, after various encounters with the Portuguese and their allies. Discontented members of the Cochin Royal family called on the assistance of the Dutch for help in overthrowing the Cochin Raja. The Dutch successfully landed at Njarakal and headed on to capture the fort at Pallippuram, which they handed over to the Zamorin. Then they went on