This study conducted a two-year experiment to investigate the impacts of biochar with various temperatures (350 °C, 500 °C, and 650 °C), on the reduction of pollutants in agricultural runoff and the enhancement of soil fertility. The results showed that the biochar significantly reduced the concentrations of total nitrogen and total phosphorus in farmland runoff. Moreover, higher-temperature biochar demonstrated greater efficacy in decreasing pollutants in farmland drainage. Treatment with RB650 resulted in a reduction of the total nitrogen and total phosphorus output load by 29.31–30.67 % and 21.92–25.21 %, respectively, compared to RB350. Furthermore, biochar exhibited substantial enhancements in soil fertility. This was supported by heightened soil organic matter content, increased availability of nutrients, and a noteworthy (P < 0.05) upsurge in pH, organic matter, total nitrogen, and total phosphorus content observed in the second year following the application of biochar. Biochar has the potential to enhance soil enzyme activity and affect microbial community composition, thereby facilitating nutrient cycling. The findings illustrated the regenerative and recyclable characteristics of biochar's adsorption activity throughout crop growth. This process enables sustained improvement in soil nutrient retention capacity and fertility. Thus, it emphasizes the potential of biochar as an in-situ model for nutrient retention and recycling, offering an effective approach to mitigate agricultural non-point source (NPS) pollution and enhance soil fertility.