Using coconut shell and boric acid as raw materials, a new boron-doped coconut shell mesoporous carbon material (B-CSC) was prepared using a simple one-step pyrolysis method for efficient adsorption and removal of tetracycline pollutants in water. The effects of pyrolysis temperature and boron-carbon mass ratio on the adsorption performance under key preparation conditions were systematically studied, and their microstructure and physicochemical properties were characterized using a specific surface area and pore size analyzer (BET), field emission scanning electron microscopy (SEM), X-ray photon spectroscopy (XPS), Raman spectrometer (Raman), and Zeta potentiometer (Zeta). The effects of initial pH, different metal cations, and different background water quality conditions on the adsorption effect were systematically investigated. Combined with material characterization and correlation analysis, the enhanced adsorption mechanism was discussed and analyzed in depth. The results showed that one-step pyrolysis could incorporate boron into the surface and crystal lattice of coconut shell charcoal, resulting in a larger specific surface area and pore volume, and the main forms of boron introduced were H3BO3, B2O3, B, and B4C. The adsorption capacity of B-CSC to tetracycline reached 297.65 mg·g-1, which was 8.9 times that of the original coconut shell mesoporous carbon (CSC). At the same time, the adsorption capacity of B-CSC for rhodamine B (RhB), bisphenol A(BPA), and methylene blue (MB), common pollutants in aquatic environments, was as high as 372.65, 255.24, and 147.82 mg·g-1, respectively. The adsorption process of B-CSC to tetracycline was dominated by physicochemical interaction, mainly involving liquid film diffusion, surface adsorption, mesoporous and microporous diffusion, and active site adsorption, and H3BO3 was the main adsorption site. The adsorption strengthening mechanism mainly reduced the chemical inertness of the carbon network and enhanced its π-π interaction and hydrogen bonding with tetracycline molecules.