Portuguese arrival. Their state stretched up to Ponnani and Pukkaitha in the north, Aanamala in the east, and Cochin and Porakkad in the south, with a capital at Perumpadappu on the northern border. Calicut (Polathiri kingdom) was conquered by Zamorin of Eranad, who then conquered large parts of Cochin Kingdom, and began trying to assert suzerainty over Cochin. Flood of 1341 and the shift of the capital In 1341, a flood resulted in the creation of the island of Vypin, and Cochin received a natural harbor. After this, the capital of the kingdom shifted from Kodungallur to Vypin in present day Kochi. Hence ,the Perumpadappu Swaroopam was renamed as the Kingdom of Cochin. Ming dynasty alliance (1411-1433) The port at Kozhikode held superior economic and political position on the medieval Kerala coast, while Kannur, Kollam, and Kochi, were commercially important secondary ports, where the traders from various parts of the world would gather. On the Malabar coast during the early 15th century, Calicut and Cochin were in an intense rivalry, so the Ming dynasty of China decided to intervene by granting special status to Cochin and its ruler, known as Keyili (可亦里) to the Chinese. Calicut had been the dominant port-city in the region, but Cochin was emerging as its main rival. For the fifth Ming treasure voyage, Admiral Zheng He was instructed to confer a seal upon Keyili of Cochin and designate a mountain in his kingdom as the Zhenguo Zhi Shan (鎮國之山, Mountain Which Protects the Country). Zheng He delivered a stone tablet, inscribed with a proclamation composed by the Yongle Emperor himself, to Cochin. As long as Cochin remained under the protection of Ming China, the Zamorin of Calicut was unable to invade Cochin and a military conflict was averted. The cessation of the Ming treasure voyages consequently had negative results for Cochin, as the Zamorin of Calicut later launched an invasion against Cochin. In the late 15th century, the Zamorin occupied Cochin and installed his representative as the king. Portuguese alliance (1500–1663) The Portuguese arrived at Kappad, Kozhikode in 1498 during the Age of Discovery, thus opening a direct sea route from Europe to India. Cochin was the scene of the first European settlement in India. In the year 1500, the Portuguese Admiral Pedro Álvares Cabral landed at Cochin after being repelled from Calicut. The Raja of Cochin welcomed the Portuguese and a treaty of friendship