Bacteria prevent cutting their own DNA by masking the restriction sites with methyl groups (CH3). The methylation process is achieved by the modification enzyme called methyltransferase. Bacterial DNA is highly methylated and is unrecognizable for the restriction enzymes, thus being prevented from cleavage.