This study provides evidence that DNA methylation is a part of the immune response that plants mount against bacterial pathogens. Studying infection of Arabidopsis thaliana by Pseudomonas syringae and responses to a bacterial peptide, the authors found demethylation and transcriptional activation of some transposable elements and immune-response genes as a part of the antibacterial response. The demethylaton limits bacterial infection in leaves and seems to result from a combination of repression of transcriptional gene silencing factors and active demethylation.