Direct reuse of biogas residue (BR) has the potential to contribute to the dissemination of antibiotic resistance genes (ARGs). Although high-temperature composting has been demonstrated as an effective method for the harmless treatment of organic waste, there is few researches on the fate of ARGs in high-temperature composting of BR. This research examined the impact of adding 5% chitosan and 15% peat on physicochemical characteristics, microbial communities, and removal of ARGs during BR-straw composting in 12 Biolan 220L composters for 48 days. Our results showed that the simultaneous addition of chitosan and peat extended the high-temperature period, and increased the highest temperature to 74 °C and germination index. These effects could be attributed to the presence of thermophilic cellulose-decomposing genera (Thermomyces and Thermobifida). Although the microbial communities differed compositionally among temperature stages, their dissimilarity drastically reduced at final stage, indicating that the impact of different treatments on microbial community composition decreases at the end of composting. Peat had a greater impact on aerobic genera capable of cellulose degradation at thermophilic stage than chitosan. Surprisingly, despite the total copy number of ARGs significantly decreased during composting, especially in the treatment with both chitosan and peat, intl1 gene abundance significantly increased 2 logs at thermophilic stage and maintained high level in the final compost, suggesting there is still a potential risk of transmission and proliferation of ARGs. Our work shed some lights on the development of waste resource utilization and emerging contaminants removal technology.