dominant state in Kerala by defeating the powerful Zamorin of Kozhikode in the Battle of Purakkad in 1763. In 1757, to check the invasion of the Zamorin, the Palakkad Raja sought the help of Hyder Ali of Mysore. In 1766, Haider Ali of Mysore defeated the Samoothiri of Kozhikode and absorbed Kozhikode to his state. The Kingdom of Mysore and British influences The arrival of British on Malabar Coast can be traced back to the year 1615, when a group under the leadership of Captain William Keeling arrived at Kozhikode, using three ships. It was in these ships that Sir Thomas Roe went to visit Jahangir, the fourth Mughal emperor, as British envoy. The island of Dharmadom near Kannur, along with Thalassery, was ceded to the East India Company as early as 1734, which were claimed by all of the Kolattu Rajas, Kottayam Rajas, and Arakkal Bibi in the late medieval period, where the British initiated a factory and English settlement following the cession. The smaller princely states in northern and north-central parts of Kerala (Malabar region) including Kolathunadu, Kottayam, Kadathanadu, Kozhikode, Tanur, Valluvanad, and Palakkad were unified under the rulers of Mysore and were made a part of the larger Kingdom of Mysore in the latter half of the 18th century CE. Hyder Ali and his successor, Tipu Sultan, came into conflict with the British, leading to the four Anglo-Mysore wars fought across southern India. Tipu Sultan ceded Malabar District to the British in 1792 as a result of the Third Anglo-Mysore War and the subsequent Treaty of Seringapatam, and South Kanara, which included present-day Kasargod District, in 1799. The British concluded treaties of subsidiary alliance with the rulers of Cochin (1791) and Travancore (1795), and these became princely states of British India, maintaining local autonomy in return for a fixed annual tribute to the British. Malabar and South Kanara districts were part of British India's Madras Presidency. Kerala Varma Pazhassi Raja (Kerul Varma Pyche Rajah, Cotiote Rajah) (1753–1805) was the Prince Regent and the de facto ruler of the Kingdom of Kottayam in Malabar, India between 1774 and 1805. He led the Pychy Rebellion (Wynaad Insurrection, Coiote War) against the English East India Company. He is popularly known as Kerala Simham (Lion of Kerala). The municipalities of Kozhikode, Palakkad, Fort Kochi, Kannur, and Thalassery, were founded on 1 November 1866 of the British Indian Empire, making them the