Worldwide, diabetes mellitus represents a growing health problem. If it occurs during pregnancy, it can increase the risk of various abnormalities in early and advanced life stages of exposed individuals due to fetal programming occurring in utero. Studies have determined that maternal conditions interfere with the genotypes and phenotypes of offspring. Researchers are now uncovering the mechanisms by which epigenetic alterations caused by diabetes affect the expression of genes and, therefore, the development of various diseases. Among the numerous possible epigenetic changes in this regard, the most studied to date are DNA methylation and hydroxymethylation, as well as histone acetylation and methylation. This review article addresses critical findings in epigenetic studies involving diabetes mellitus, including variations reported in the expression of specific genes and their transgenerational effects.