Bacteria are closely related with human health and diseases. For example, the emergence of drug-resistant bacteria is a serious problem in the world. Studying the human microbiome shows its important role for our health. But we have very limited tools to edit bacterial population. Antibiotics are generally broad-spectrum and unable to kill only bad bacteria. The natural enemies of bacteria, called bacteriophage (phage), have highly specific host range, and thus promising candidates for targeted bacterial population editing. However, isolation and characterization of natural phages can be a time-, labor- and cost-intensive way. Also, developing phage-based therapeutics and diagnostics is limited by the difficulty of engineering phages. Here, I describe a phage genome-engineering platform and synthetic phages with tunable host ranges to overcome these challenges.