As an environmentally friendly and low-cost adsorbent, biochar has great potential in wastewater treatment.