When the republic was founded, he was giving logic courses in Medrese-t-ül Mütehassisin (a postgraduate school). When Mustafa Kemal's government abolished the madrasas, he withdrew into solitude. He studied for 20 years in solitude. He died of cardiac deficiency on 27 May 1942 in Erenköy district of Istanbul. He is buried in Sahrayı Cedit Mezarlığı (Sahrayı Cedit Cemetery) in Kadıköy in İstanbul.
