The expression of the insulin-like growth factor 2 (Igf2) and H19 genes is imprinted. Although these neighbouring genes share an enhancer, H19 is expressed only from the maternal allele, and Igf2 only from the paternally inherited allele. A region of paternal-specific methylation upstream of H19 appears to be the site of an epigenetic mark that is required for the imprinting of these genes. A deletion within this region results in loss of imprinting of both H19 and Igf2 (ref. 5). Here we show that this methylated region contains an element that blocks enhancer activity. The activity of this element is dependent upon the vertebrate enhancer-blocking protein CTCF. Methylation of CpGs within the CTCF-binding sites eliminates binding of CTCF in vitro, and deletion of these sites results in loss of enhancer-blocking activity in vivo, thereby allowing gene expression. This CTCF-dependent enhancer-blocking element acts as an insulator. We suggest that it controls imprinting of Igf2. The activity of this insulator is restricted to the maternal allele by specific DNA methylation of the paternal allele. Our results reveal that DNA methylation can control gene expression by modulating enhancer access to the gene promoter through regulation of an enhancer boundary.