 The local legends, both Islamic and Hindu, say of the arrival of Malik ibn Dinar and his company with them royal letters from the Ceraman Perumal [the last king of the Cera Perumal Kingdom, c. 1089- 1122 AD] to different native chiefs seeking their assistance to the missionary activities and establishment of mosques.The mosque is a former Hindu temple dedicated to God Subramanya.Hindu inscriptions can still be seen on the pillars and base walls of the mosque.