Kannur (), formerly known in English as Cannanore, Arabic as Kannanur, and Portuguese as Cananor, is a city and a Municipal Corporation in North Malabar region, state of Kerala, India. It is the largest city in North Malabar, which is the northernmost region of Kerala. It is sometimes identified Kolathunadu, which was ruled by the Kolathiris. In the 12th and 13th centuries there was trade with Persia and Arabia.

It served as the British military headquarters on India's west coast until 1887. In conjunction with her sister city, Tellicherry, it was the third largest city on the western coast of British India in the 18th century after Bombay and Karachi.

Early history

The earliest evidence of human habitation in the district are rock-cut caves and megalithic burial sites of the Neolithic age. The Taliparamba-Kannur-Thalassery area abounds in rock-cut caves, dolmens, burial stone circles and menhirs, all of megalith. Ezhimala was the headquarters of a powerful kingdom namely Mushika dynasty in the ancient period. Later Kannur was the capital of the Kolattiri Rajas, whose kingdom had trading relations with Arabia and Persia in the 12th century and 13th centuries. In his book on travels (Il Milione), Marco Polo recounts his visit to the area in the mid 1290s. Other visitors included Faxian, the Buddhist pilgrim and Ibn Batuta, writer and historian of Tangiers.

A popular legend holds that the ships of Solomon had anchored along the coasts of Kannur to collect teak for building the Temple of the Lord. Kannur also finds mention as Naura in the Periplus of the Erythraean Sea, a Greek work of great antiquity.

North Malabar was the seat of powerful kingdom based at Ezhimala in the Sangam period (1st-5th century CE). The ancient port of Naura, which is mentioned in the Periplus of the Erythraean Sea as a port somewhere north of Muziris is identified with Kannur. The kingdom of Ezhimala had jurisdiction over two Nadus - The coastal Poozhinadu and the hilly eastern Karkanadu. According to the works of Sangam literature, Poozhinadu consisted much of the coastal belt between Mangalore and Kozhikode. Karkanadu consisted of Wayanad-Gudalur hilly region with parts of Kodagu (Coorg). It is said that Nannan, the most renowned ruler of Ezhimala dynasty, took refuge at Wayanad hills in the 5th century CE when he was lost to Cheras, just before his execution in a battle, according to the Sangam works.

Pliny the Elder (1st century CE) states that the port of Tyndis was located at the northwestern border of Keprobotos (Chera dynasty).Gurukkal, R., & Whittaker, D. (2001). In search of Muziris. Journal of Roman Archaeology, 14, 334-350. The North Malabar region, which lies north of the port at Tyndis, was ruled by the kingdom of Ezhimala during Sangam period.A. Shreedhara Menon, A Survey of Kerala History According to the Periplus of the Erythraean Sea, a region known as Limyrike began at Naura and Tyndis. However the Ptolemy mentions only Tyndis as the Limyrike'''s starting point. The region probably ended at Kanyakumari; it thus roughly corresponds to the present-day Malabar Coast. The value of Rome's annual trade with the region was estimated at around 50,000,000 sesterces.According to Pliny the Elder, goods from India were sold in the Empire at 100 times their original purchase price. See Pliny the Elder mentioned that Limyrike was prone by pirates.Bostock, John (1855). "26 (Voyages to India)". Pliny the Elder, The Natural History. London: Taylor and Francis. The Cosmas Indicopleustes mentioned that the Limyrike was a source of peppers.Indicopleustes, Cosmas (1897). Christian Topography. 11. United Kingdom: The Tertullian Project. pp. 358–373.Das, Santosh Kumar (2006). The Economic History of Ancient India. Genesis Publishing Pvt Ltd. p. 301.

According to Kerala Muslim tradition, Kannur along with surrounding Madayi and Dharmadom were home to three of the oldest mosques in the Indian subcontinent. According to the Legend of Cheraman Perumals, the first Indian mosque was built in 624 AD at Kodungallur with the mandate of the last the ruler (the Cheraman Perumal) of Chera dynasty, who left from Dharmadom to Mecca and converted to Islam during the lifetime of Muhammad (c. 570–632). According to Qissat Shakarwati Farmad, the Masjids at Kodungallur, Kollam, Madayi, Barkur, Mangalore, Kasaragod, Kannur, Dharmadam, Panthalayani, and Chaliyam, were built during the era of Malik Dinar, and they are among the oldest Masjids in the Indian subcontinent.Prange, Sebastian R. Monsoon Islam: Trade and Faith on the Medieval Malabar Coast. Cambridge University Press, 2018. 98. It is believed that Malik Dinar died at Thalangara in Kasaragod town.Pg 58, Cultural heritage of Kerala: an introduction, A. Sreedhara Menon, East-West Publications, 1978

Ezhimala kingdom was succeeded by Mushika dynasty in the early medieval period, most possibly due to the migration of Tuluva Brahmins from Tulu Nadu. The Mushika-vamsha Mahakavya, written by Athula in the 11th century, throws light on the recorded past of the Mushika Royal Family up until that point. The Indian anthropologist Ayinapalli Aiyappan states that a powerful and warlike clan of the Bunt community of Tulu Nadu was called Kola Bari and the Kolathiri Raja of Kolathunadu was a descendant of this clan. The Kolathunadu (Kannur) Kingdom, who were the descendants of Mushika dynasty, at the peak of its power reportedly extended from Netravati River (Mangalore) in the north to Korapuzha (Kozhikode) in the south with Arabian Sea on the west and Kodagu hills on the eastern boundary, also including the isolated islands of Lakshadweep in Arabian Sea. An Old Malayalam inscription (Ramanthali inscriptions), dated to 1075 CE, mentioning king Kunda Alupa, the ruler of Alupa dynasty of Mangalore, can be found at Ezhimala (the former headquarters of Mushika dynasty) near Cannanore, Kerala.Narayanan, M. G. S. Perumāḷs of Kerala. Thrissur (Kerala): CosmoBooks, 2013. 483. The Arabic inscription on a copper slab within the Madayi Mosque in Kannur records its foundation year as 1124 CE.

Until the 16th century CE, the Kasargod town was known by the name Kanhirakode (may be by the meaning, 'The land of Kanhira Trees') in Malayalam. The Kumbla dynasty, who swayed over the land of southern Tulu Nadu wedged between Chandragiri River and Netravati River (including present-day Taluks of Manjeshwar and Kasaragod) from Maipady Palace at Kumbla, had also been vassals to the Kolathunadu, before the Carnatic conquests of Vijayanagara Empire. The Kumbla dynasty had a mixed lineage of Malayali Nairs and Tuluva Brahmins. They also claimed their origin from Cheraman Perumals of Kerala. Francis Buchanan-Hamilton states that the customs of Kumbla dynasty were similar to those of the contemporary Malayali kings, though Kumbla was considered as the southernmost region of Tulu Nadu. Just like other contemporary kings of Kerala in the medieval period, The powerful Kolathu Raja also came under the influence of Zamorin later. The Kolathunadu in the late medieval period emerged into independent 10 principalities i.e., Kadathanadu (Vadakara), Randathara or Poyanad (Dharmadom), Kottayam (Thalassery), Nileshwaram, Iruvazhinadu (Panoor, Kurumbranad etc., under separate royal chieftains due to the outcome of internal dissensions. The Nileshwaram dynasty on the northernmost part of Kolathiri dominion, were relatives to both Kolathunadu as well as the Zamorin of Calicut, in the early medieval period.

The Portuguese explorer Vasco da Gama visited Kannur in 1498. Kannur became the sight of a confrontation between the Ottoman Turks and the Portuguese Empire, shortly thereafter it became a Portuguese settlement. The port at Kozhikode held the superior economic and political position in medieval Kerala coast, while Kannur, Kollam, and Kochi, were commercially important secondary ports, where the traders from various parts of the world would gather.The Portuguese, Indian Ocean and European Bridgeheads 1500–1800. Festschrift in Honour of Prof. K. S. Mathew (2001). Edited by: Pius Malekandathil and T. Jamal Mohammed. Fundacoa Oriente. Institute for Research in Social Sciences and Humanities of MESHAR (Kerala)

The Portuguese arrived at Kappad Kozhikode in 1498 during the Age of Discovery, thus opening a direct sea route from Europe to India.DC Books, Kottayam (2007), A. Sreedhara Menon, A Survey of Kerala History The Portuguese led by Don Francisco de Almeda, the first Portuguese viceroy for India, built the St. Angelo's Fort north of Kannur in 1505. In 1663 the Dutch captured the fort. In 1790 the British captured the fort. At present, it is under the control of the Archaeological Survey of India. 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. In the latter half of the 18th century, Hyder Ali and Tipu Sultan, rulers of Mysore, conquered much of the district and came into conflict with the British. In 1792, at the conclusion of the Third Anglo-Mysore War, the British took over Kannur and the surrounding region, which became the new Malabar District of British India's Madras Presidency. During the 17th century, Kannur was the capital city of the only Muslim Sultanate in the Malabar region - Arakkal - who also ruled the Laccadive Islands in addition to the city of Kannur. Arakkal Kingdom and Chirakkal kingdom were two vassal kingdoms based in the city of Kannur.

In 1761, the British captured Mahé, and the settlement was handed over to the ruler of Kadathanadu. The British restored Mahé to the French as a part of the 1763 Treaty of Paris. In 1779, the Anglo-French war broke out, resulting in the French loss of Mahé. In 1783, the British agreed to restore to the French their settlements in India, and Mahé was handed over to the French in 1785.

Resistance to British rule Kannur District witnessed one of the longest and bloodiest resistance to British rule in India. Initially the British had to suffer local resistance against their rule under the leadership of Kerala Varma Pazhassi Raja, who had popular support in Thalassery-Wayanad region. This revolt led by Pazhassi Raja in the 1792–1806 period kept a large part of the district in a state of war.

Indian freedom movement Kannur District played an important role in the Indian freedom movement. The Indian National Congress, founded in 1885, established a Malabar District committee in 1908. A branch of the All India Home Rule League, founded by Dr. Annie Besant, functioned in Thalassery during this period and among its active workers was V.K. Krishna Menon. By the end of 1939, a branch of the Communist Party of India was formally established at Pinarayi, a village near Thalassery. The decision by the Nagpur Congress to give up constitutional methods of agitation and resort to non-violent non-co-operation as a means of achieving swaraj led to the widespread boycott of foreign goods, courts of law and educational institutions in Kannur. Mahatma Gandhi and Maulana Shaukat Ali toured the district to carry the message of the Non-Co-operation and Khilafat Movements. The Khilafat movement of 1921 was an uprising of Muslims against the British for abolishing the Islamic Chaliphate in West Asia and resulted in the formation of a secular Turkey.

Civil disobedience movement