How do plasmids protect themselves from restriction enzymes released by bacteria (i.e., against bacteriophages)?
The strains that we use in the lab have defective restriction machinery.
In the case of DH5α it is mostly because of the
hsdR17 mutation. The former mutation eliminates an endonuclease that can degrade plasmids and the latter one eliminates the restriction system.