Transcriptional gene silencing is done by histone modifications, which put heterochromatin around a gene. This means the transcriptional machinery (RNA polymerase, transcription factors, etc.) cannot get at the gene. Genes may be silenced by DNA methylation. This happens regularly during development, when genes are turned on and off at different stages.