Heavy metals and tetracycline pollute the environment and endanger human health. This work prepared a multifunctional coconut shell biochar (Ti-XBC) through NaHCO3 activation and TiO2 modification. The modified coconut shell biochar was characterized by various methods. Ti-4BC exhibited excellent removal performance for heavy metals. The maximum adsorption capacity of Ti-4BC on Cd2+, Pb2+, Cr3+, and Cr6+ reached 104.2, 136.8, 101.2, 112.4 mg/g in water. The adsorption of Ti-4BC for four metal ions had a competitive effect in the binary metal system. It also reduced the mobility of four heavy m...