seat of the Kerala branch of the Chera clan, the Perumals, for about three hundred years. Kodungallur is well known in ancient times due to trade, and also due to the Baghavathy kshethram, and as well as the seat of Kannagi's resting place in the ksethram, after she burns down the capital of the Pandya rulers Madurai, who falsely accuse her husband of stealing the anklet of the royal Queen. This is steeped in the folklore of Kerala and Tamil Nadu, which is evident in the temple festivals, and has it roots in Dharma, which the Pandya ruler failed to follow, and incurs the wrath of the chaste Kannagi. This is also the story of the classical Tamil epic Chilappatikaram, written by royal born, but later turned ascetic Ilango Adigal, brother of the Chera King Sengottuvan. It was also known as Muchiri Pattanam, Muyirikkode, Mahavanchimana Pattanam, and Thrikulasekarapuram. Kodungallur was also known as Jangli, Gingaleh, Cyngilin, Shinkali, Chinkli, Jinkali, Shenkala, and Cynkali, which are all derived from the name of the River Changala (or the Chain River, i.e., Shrinkhala in Sanskrit), a tributary of the Periyar. History Early historic harbour Scholars believe that Muziris, an ancient harbour located on the mouth of Periyar, coincides with modern-day Kodungallur. Central Kerala and western Tamil Nadu in early historic south India was ruled by the Chera line of rulers. The harbour was visited by navigators from all over the world, especially from the Mediterranean world. The Roman Empire had a continuous trading connection with the West Coast of India. Along with spices (pepper), commodities such as pearls, muslin, ivory, diamonds, silk and perfumes were acquired by the sailors from central Kerala. A traditional belief among the ancient Christians in Kerala is that Apostle St. Thomas landed in or around Kodungallur in the middle of the first century CE and founded Seven Churches: Kodungallur, Niranam, Nilackal (Chayal), Kokkamangalam, Kottakkavu, Palayoor and Kollam. According to Kerala Muslim tradition, Kodungallur was home to the oldest mosque 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 Prophet Muhammad (c. 570–632). According to Qissat Shakarwati Farmad, the Masjids at Kodungallur, Kollam, Madayi, Barkur, Mangalore, Kasaragod, Kannur, Dharmadam,