In this study, cow dung biomass was converted into biochar (BC). BC900 was obtained through one-step pyrolysis at 900 degrees C, while BC700-900 and BC900-700 were obtained via two-step pyrolysis at temperature ranges of 700-900 degrees C and 900-700 degrees C, respectively. The primary objective was to investigate the adsorption performance and application value of BCs for tetracycline (TC) in water. The samples underwent characterization using scanning electron microscopy and mapping analysis, Fourier transform infrared spectroscopy, X-ray diffraction, and thermogravimetric analysis. Subsequently, the effects of reaction time, adsorbent dosage, temperature, pH, and ionic strength were analyzed. Based on the fitting results of adsorption kinetics, the pyrolytic BCs exhibited a better fit with the pseudo-secondary kinetic model. The adsorption isotherm indicated monolayer adsorption on the surface of the adsorbents, with maximum adsorption capacities of 158.93 mg/g for BC900-700, 150.15 mg/g for BC700-900, and 142.56 mg/g for BC900, respectively. Furthermore, results from simulated wastewater and regeneration experiments demonstrated that BC900-700 exhibited not only excellent adsorption performance in wastewater but also remarkable regeneration capabilities. The two-step pyrolysis BCs in this study displayed a higher adsorption capacity compared to the one-step pyrolysis BCs in practical applications. These findings provide insights for further exploring the adsorption mechanism and optimizing the process.