From 1999 to 2007 Mulia was the senior advisor of the Minister of Religious Affairs. In 2004 this group started to write the Compilation of Islamic Law. This draft of Indonesia’s Islamic code included banning polygamy and child marriage. Because of this, Mulia got death threats.