The first Indian mosque, Cheraman Juma Mosque, is thought to have been built in 629 CE by Malik Deenar[54] although some historians say the first mosque was in Gujarat in between 610 CE to 623 CE.[55] In Malabar, the Mappilas may have been the first community to convert to Islam.[56] Intensive missionary activities were carried out along the coast and many other natives embraced Islam. According to legend, two travellers from India, Moulai Abdullah (formerly known as Baalam Nath) and Maulai Nuruddin (Rupnath), went to the court of Imam Mustansir (427–487 AH)/(1036-1094 CE) and were so impressed that they converted to Islam and came back to preach in India in 467 AH/1073 CE. Moulai Ahmed was their companion.