Glucose-6-phosphatase (G6PC) plays an important role in glucose homeostasis because it catalyzes the final steps of gluconeogenesis and glycogenolysis. Maternal malnutrition during pregnancy affects G6PC activity, yet it is unknown whether epigenetic regulations of the G6PC gene are also affected. In this study, we fed primiparous, purebred Meishan sows either standard-protein (SP; 12% crude protein) or low-protein (LP; 6% crude protein) diets throughout gestation and analyzed hepatic G6PC expression in both male and female newborn piglets. The epigenetic regulation of G6PC, including DNA methylation, histone modifications, and micro RNA (miRNA), was determined to reveal potential mechanisms. Male, but not female, LP piglets had a significantly lower serum glucose concentration and greater hepatic G6PC mRNA expression and enzyme activity. Also, in LP males, glucocorticoid receptor binding to the G6PC promoter was lower compared with SP males, which was accompanied by hypomethylation of the G6PC promoter. Modifications in histones also were gender dependent; LP males had less histone H3 and histone H3 lysine 9 trimethylation and more histone H3 acetylation and histone H3 lysine 4 trimethylation on the G6PC promoter compared with the SP males, whereas LP females had more H3 and greater H3 methylation compared with their SP counterparts. Moreover, two miRNA, ssc-miR-339-5p and ssc-miR-532-3p, targeting the G6PC 3' untranslated region were significantly upregulated by the LP diet only in females. These results suggest that a maternal LP diet during pregnancy causes hepatic activation of G6PC gene expression in male piglets, which possibly contributes to adult-onset hyperglycemia.