in the erstwhile region of Ezhimala. The Koyilandy Jumu'ah Mosque contains an Old Malayalam inscription written in a mixture of Vatteluttu and Grantha scripts which dates back to the 10th century CE. It is a rare surviving document recording patronage by a Hindu king (Bhaskara Ravi) to the Muslims of Kerala. Mushaka dynasty By the 8th century, the political atmosphere in southern India had changed rather dramatically as a new political culture based on settled agrarian exploitation took root in the region. As in other parts of the Indian sub-continent, Brahmanism provided the ideological support for these newly emerging regional, primarily agrarian states. 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. The Arabic inscription on a copper slab within the Madayi Mosque in Kannur records its foundation year as 1124 CE. 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. Between the 9th and 12th centuries, a dynasty called "Mushaka" controlled the Chirakkal areas of northern Malabar (the Wynad-Tellichery area was part of the Second Chera Kingdom). The Mushakas were probably the descendants of the ancient royal family of Nannan of Ezhi mala and were perhaps a vassal of the Cheras. Some scholars have expressed the view that Mushakas were not under the Cheras, since the ruler of Mushaka does not figure along with the rulers of Eralnadu and Valluvanadu as a signatory in the famous Terisappalli and Jewish Copper Plates. Up to the 11th century, the Mushaka kings followed patrilineal system of succession, and thereafter they gradually switched over to the matrilineal system. 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. Mushika-vamsha, a Sanskrit poem written by Atula, describes a number of Mushaka kings such as Vikrama Rama, Jayamani, Vallabha II and Srikantha. Atula was the court poet of King Srikantha who ruled towards the end of the 11th century AD. King Vikrama Rama is said to have saved the famous Buddhist vihara of Sri Mulavasa from a terrible sea erosion on the Malabar Coast. Prince Vallabha II was dispatched