Restriction enzymes are meant to cut the DNA at specific lengths. In bacteria, these enzymes help to destroy DNA of bacteriophages (virus) and protect them.