Bridging the biocatalytic repertoire and the effective environmental remediation remains a great challenge. Here, inspired by the dehalogenases, the authors designed a single atom Co catalyst on carbon doped boron nitride that exhibits high stability and selectivity in dechlorination.