it is the first mosque in India. It stands in the district of Thrissur in Kerala, on the Parur-Kodungalloor road.
It was built in 629 AD by Malik Ibn Dinar. Kunjikuttan Thampuran who is known as Kerala Vyasa has expressed the view that this was an ancient Buddhavihar that was gifted to the Muslims for the construction of a mosque.
The oral tradition is that Cheraman Perumal, the Chera king, went to Arabia where he met the Prophet and embraced Islam. From there he had sent letters with Malik Ibn Dinar to his relatives in Kerala, asking them to be courteous to the latter.
The masjid is believed to have been renovated in the 11th century and also 300 years ago. The front portion was expanded in 1974 and further expanded in 1984. The older part of the mosque including the Sanctum Sanctorum is left untouched and is still preserved. Its grandeur is still kept alive by the wooden steps and ceiling.
People of all religions come to this mosque and many non-Muslims conduct vidhyarambham (initiation ceremony to the world of letters) of their children here.