According to popular tradition, Islam was brought to Lakshadweep islands, situated just to the west of Malabar Coast, by Ubaidullah in 661 CE. His grave is believed to be located on the island of Andrott.[45] A few Umayyad (661–750 AD) coins were discovered from Kothamangalam in the eastern part of Ernakulam district, Kerala.[46] According to Kerala Muslim tradition, the Masjid Zeenath Baksh at Mangalore is one of the oldest mosques in Indian subcontinent.[47] According to the Legend of Cheraman Perumals, the first Indian mosque was built in 624 AD at Kodungallur in present-day Kerala with the mandate of the last the ruler (the Cheraman Perumal) of Chera dynasty, who converted to Islam during the lifetime of Prophet Muhammad (c. 570–632).[48][49][50][51] According to Qissat Shakarwati Farmad, the Masjids at Kodungallur, Kollam, Madayi, Barkur, Mangalore, Kasaragod, Kannur, Dharmadam, Panthalayini, and Chaliyam, were built during the era of Malik Dinar, and they are among the oldest Masjids in Indian Subcontinent.[52] It is believed that Malik Dinar was died at Thalangara in Kasaragod town.[53]