Prenatal exposure to mercury in utero causes abnormal foetal growth and adverse outcomes. DNA methylation is currently considered a possible mechanism through which this occurs. However, few studies have investigated the association between prenatal exposure to mercury and DNA methylation in detail. This study aimed to clarify the relationship between prenatal exposure to total mercury (Hg) and DNA methylation and its associations with sex-specific characteristics in male and female offspring. In a birth cohort study known as the Chiba study of Mother and Child Health, the DNA methylation status in cord tissue and Hg concentrations in cord serum were examined. A total of 67 participants (27 males and 40 females) were analysed based on Spearmanʼs correlations, adjusted by a false discovery rate of the sex of each offspring. Only one methylated locus was positively correlated with Hg concentrations in cord serum in male offspring, but not in female offspring, and was annotated to the haloacid dehalogenase-like hydrolase domain-containing protein 1 (HDHD1) gene on chromosome X. This locus was located in the intron of the HDHD1 gene body and is a binding site for the zinc finger protein CCCTC-binding factor. One of the other loci, located in HDHD1, was highly methylated in the group with higher mercury concentrations, and this locus was in the gene body of HDHD1. Our results suggest that prenatal exposure to Hg might affect the epigenetic status of male foetuses.