Disposal of the pollutants arising from farming cattle and other livestock threatens the envi-ronment and public safety in diverse ways.Herein,we report on the synthesis of engineered biochars using cow dung as raw material,and investigating these biochars as antibacterial agents for water decontamination.By coating the biochars with N-halamine polymer and loading them with active chlorine(i.e.,Cl+),we were able to regulate them on demand by tuning the polymer coating and bleaching conditions.The obtained N-halamine-modified biochars were found to be extremely potent against Escherichia coli and Staphylococcus aureus.We also investigated the possibility of using these N-halamine-modified biochars for bac-terial decontamination in real-world applications.Our findings indicated that a homemade filter column packed with N-halamine-modified biochars removed pathogenic bacteria from mining sewage,dairy sewage,domestic sewage,and artificial seawater.This proposed strat-egy could indicate a new way for utilizing livestock pollutants to create on-demand decon-taminants.