Restriction enzyme
Inside a prokaryote, the restriction enzymes selectively cut up foreign DNA in a process called restriction. The host DNA is protected by another enzyme which protects the host DNA and blocks cleavage. Together, these two processes are the restriction modification system. It is the earliest and simplest immune system. They are also a kind of selfish, mobile genetic element.