# How does bacteria protect their own DNA against restriction enzymes?

Bacteria prevent eating away their own DNA by masking the restriction sites with methyl groups ($C {H}_{3}$). Methylation of DNA is a common way to modify DNA function and bacterial DNA is highly methylated. In this case it functions to make the restriction sites unrecognizable for the restriction enzymes.