Cytosine methylation provides a mechanism to heritably alter plant and animal genomes without permanent modification of the DNA sequence. In flowering plants, DNA methylation patterns are faithfully reproduced across many generations, so that methylation shapes the inheritance of plant traits. I will present our recent results that elucidate how plants ensure the accurate and reliable inheritance of DNA methylation.