 He was the founding secretary of the "Majlisul Ulema", an organization formed for social reform amongst the Mappila community and to draw their participation in the Indian National Movement.Moulavi was arrested and underwent rigorous imprisonment during the Khilafat Movement of 1921.He had to undergo imprisonment for another 9 months in 1930 for his participation in the Payyannur Salt Sathyagraha struggle.