Ancient viral DNA in bacteria helps block new infections, offering a potential path to fight antibiotic resistance.