Activating the expression of host susceptibility (S) genes is one of the strategies plant pathogens employed to promote infection of their host. Here, the authors show that targeted methylation at the TAL20 effector binding element of the cassava SWEET10a gene lead to resistance to Xanthomonas phaseoli.