with Kochi and when Francisco de Almeida was appointed Viceroy of Portuguese India in 1505, he established his headquarters at Kochi. During his reign, the Portuguese managed to dominate relations with Kochi and established a number of fortresses along the Malabar Coast. Nonetheless, the Portuguese suffered severe setbacks due to attacks by Samoothiri Maharaja's forces, especially naval attacks under the leadership of admirals of Kozhikode known as Kunjali Marakkars, which compelled them to seek a treaty. The Kunjali Marakkars are credited with organizing the first naval defense of the Indian coast. Tuhfat Ul Mujahideen written by Zainuddin Makhdoom II (born around 1532) of Ponnani in 16th-century CE is the first-ever known book fully based on the history of Kerala, written by a Keralite. It is written in Arabic and contains pieces of information about the resistance put up by the navy of Kunjali Marakkar alongside the Zamorin of Calicut from 1498 to 1583 against Portuguese attempts to colonize Malabar coast. Thunchaththu Ezhuthachan, who is considered as the father of modern Malayalam literature, was born at Tirur (Vettathunadu) during Portuguese period. The medieval Kerala school of astronomy and mathematics that flourished between the 14th and 16th centuries, was also primarily based in Vettathunadu (Tirur region) The St. Angelo Fort at Kannur was built by the Portuguese in 1505, which was later captured by Dutch and Arakkal kingdom. The Portuguese Cemetery, Kollam (after the invasion of Dutch, it became Dutch Cemetery) of Tangasseri in Kollam city was constructed in around 1519 as part of the Portuguese invasion in the city. Buckingham Canal (a small canal between Tangasseri Lighthouse and the cemetery) is situated very close to the Portuguese Cemetery. A group of pirates known as the Pirates of Tangasseri formerly lived at the Cemetery. The remnants of St. Thomas Fort and Portuguese Cemetery still exist at Tangasseri. The Muslim line of Ali Rajas of Arakkal kingdom, near Kannur, who were the vassals of the Kolathiri, ruled over the Lakshadweep islands. The Bekal Fort near Kasaragod, which is also largest fort in the state, was built in 1650 by Shivappa Nayaka of Keladi. French port in Kerala - Mahe The French East India Company constructed a fort on the site of Mahé in 1724, in accordance with an accord concluded between André Mollandin and Raja Vazhunnavar of Badagara three years earlier. In 1741, Mahé de La Bourdonnais retook the town after a period