This study investigated the impacts of adding FeSO(4) and biochar to cattle manure and rice straw composts on functional genes controlling nitrogen loss, bacterial community, nitrification, and denitrification. Four treatments were established, including a control group (CP), and CP mixtures that included 4% biochar (TG1), 4% FeSO(4) (TG2), or 2% FeSO(4) and 2% biochar (TG3). Compared to CP, TG1-3 had a lower total nitrogen loss rate, and TG3 resulted in reduced NH(3) (52.4%) and N(2)O (35.6%) emissions to mitigate nitrogen loss. The abundance of amoA and narG gene in TG3 was higher than in th...