This research examined the impact of exogenous thermophilic bacteria and ripening agents on greenhouse gas (GHG) emission, enzyme activity, and microbial community during composting. The use of ripening agents alone resulted in a 30.9 % reduction in CO2 emissions, while the use of ripening agents and thermophilic bacteria resulted in a 50.8 % reduction in N2O emissions. Pearson’s analysis showed that organic matter and nitrate nitrogen were the key parameters affecting GHG emissions. There was an inverse correlation between CO2 and CH4 releases and methane monooxygenase α subunit and N2O reductase activity (P<0.05). Additionally, N2O emissions were positively related to β-1, 4-N-acetylglucosaminidase, and ammonia monooxygenase activity (P<0.05). Deinococcota, Chloroflexi, and Bacteroidota are closely related to CO2 and N2O emissions. Overall, adding thermophilic bacteria represents an effective strategy to mitigate GHG emissions during composting.