According to Mughatil ibn Bakri, a staff member of the Al-Nizamiyya of Baghdad, he alleges that Nizam al-Mulk converted to Shia Islam after a Sunni-Shia debate held on the orders of Sultan Malik Shah I, who also converted to Shia'ism.