Bacterial restriction-modification systems are responsible for protecting cells from foreign genetic material, for example, bacteriophages and plasmids. Immune systems require strict regulation, as bacteria, like humans, can have autoimmune reactions—an attack on their own DNA.