Phoebe Rice and her team at the University of Chicago have captured molecular snapshots of a viral enzyme mid-movement, like a high-speed photo of a tiny machine switching gears. These enzymes, made by viruses that infect bacteria, can insert their DNA into a host with surgical precision—and then, when needed, remove it cleanly, leaving no trace behind. This discovery sheds light on one of nature’s most elegant genetic tools and could help scientists build better gene-editing technologies for medicine and biotechnology.

The enzymes in question are called large serine integrases, used by bacteriophages—viruses that infect bacteria—to weave their genetic code into bacterial DNA. Unlike CRISPR, which can leave cuts and scars in DNA, these enzymes perform seamless insertions and deletions. That makes them especially attractive for applications where precision is critical, such as fixing faulty genes in human cells. But for years, scientists didn’t understand how the enzyme knew whether to insert or remove DNA—a mystery that Rice’s team has now solved.

Using cryo-electron microscopy, a technique that freezes molecules in place and images them at near-atomic resolution, the researchers captured detailed 3D structures of the enzyme during both DNA insertion and removal. They found that part of the enzyme acts like a movable arm, locking the viral DNA into place after insertion. To reverse the process, a helper protein called a recombination directionality factor (RDF) binds to the enzyme and changes its shape, flipping it into removal mode. It’s a precise molecular switch—two distinct shapes for two opposite jobs.

This structural insight is more than just a biological curiosity. It gives scientists a blueprint for engineering smarter, more controllable gene-editing tools. Rice’s lab is already collaborating with Weixin Tang, an associate professor of chemistry at UChicago, to adapt these enzymes for use in mammalian cells. With this new understanding, researchers may one day design custom enzymes that insert therapeutic genes exactly where needed—and remove them if necessary, with no damage left behind.

As genome editing moves from the lab to the clinic, precision and safety become paramount. These viral enzymes, honed by millions of years of evolution, offer a glimpse of what’s possible. By learning how nature edits DNA so cleanly, scientists are one step closer to doing the same in human medicine.