This study explored the influence of pyrolysis temperatures on the properties of municipal sludge-based biochar (MSB) and evaluated the impact of MSB on humification and oxytetracycline (OTC, a broad-spectrum antibiotic) degradation in pig manure composting. Three types of MSB were produced from sewage sludge pyrolyzed at 300 degrees C, 500 degrees C, and 700 degrees C, respectively. Results indicated that pyrolysis temperature adjusted the formation sequence of the functional groups in MSB, and higher pyrolysis temperatures enriched the aromaticity of the biochar and augmented the concentrations of humic precursor compounds. The MSB addition to pig manure composting enhanced the peak temperature and prolonged the thermophilic phase. Moreover, the MSB addition significantly increased the HI (humic acid/fulvic acid) values (1.6-2.57) compared with the control (1.28), with a more pronounced effect observed at higher biochar pyrolysis temperatures. Furthermore, the MSB reduced the half-life of OTC degradation (1.47-2.44 d) during composting, accelerating its degradation compared with the control (2.66 d). The study demonstrated that the MSB provided a substantial amount of humic precursor materials into the composting process while also expediting the degradation of organic matter, thereby enhancing the humification process. Moreover, the extended duration of the thermophilic phase accelerated the degradation of OTC and shortened its half-life. Notably, the MSB at 700 degrees C had the best performance compared with other MSBs.