The main function of CRISPR-Cas systems, the revolutionary tool scientists now employ to edit genes, is to defend bacteria against threats such as viruses called bacteriophages.