Intrauterine nutrition can program metabolism, creating stable changes in physiology that may have significant health consequences. The mechanism underlying these changes is widely assumed to involve epigenetic changes to the expression of metabolic genes, but evidence supporting this idea is limited. Here we have performed the first study of the epigenomic consequences of exposure to maternal obesity and diabetes. We used a mouse model of natural-onset obesity that allows comparison of genetically identical mice whose mothers were either obese and diabetic or lean with a normal metabolism. We find that the offspring of obese mothers have a latent metabolic phenotype that is unmasked by exposure to a Western-style diet, resulting in glucose intolerance, insulin resistance and hepatic steatosis. The offspring show changes in hepatic gene expression and widespread but subtle alterations in cytosine methylation. Contrary to expectation, these molecular changes do not point to metabolic pathways but instead reside in broadly developmental ontologies. We propose that, rather than being adaptive, these changes may simply produce an inappropriate response to suboptimal environments; maladaptive phenotypes may be avoidable if postnatal nutrition is carefully controlled.