Bacteria have their own immune system protecting against outside DNA

This article tells about how bacteria use their immune systems to defend themselves from invading outsider DNA.