Animal manure is a primary repository of antibiotic resistance genes (ARGs) and mobile genetic elements (MGEs). This work explored the efficiency of ARGs and MGEs removal during pig manure composting after thermal pretreatment (TPC) and the underlying mechanisms. TPC resulted in a decrease of 94.7%