Restriction enzymes probably evolved from a common ancestor and became widespread by horizontal gene transfer. In addition, there is growing evidence that restriction endonucleases evolved as a selfish genetic element.