He was the founder and director of the Al-Hikam Islamic boarding school. He was the running mate of Megawati Sukarnoputri in Indonesia's 2004 presidential election, but the ticket lost the election in a runoff. 