Methylation is able to inhibit the transcription of genes in two ways: by preventing the binding of transcriptional factors to the DNA, and also by attracting proteins that condense the DNA-histone complex (making the DNA inaccessible to transcription factors).