Genomic imprinting is widespread in eutherian mammals. Marsupial mammals also have genomic imprinting, but in fewer loci. It has long been thought that genomic imprinting is somehow related to placentation and/or viviparity in mammals, although neither is restricted to mammals. Most imprinted genes are expressed in the placenta. There is no evidence for genomic imprinting in the egg-laying monotreme mammals, despite their short-lived placenta that transfers nutrients from mother to embryo. Post natal genomic imprinting also occurs, especially in the brain. However, little attention has been paid to the primary source of nutrition in the neonate in all mammals, the mammary gland. Differentially methylated regions (DMRs) play an important role as imprinting control centres in each imprinted region which usually comprises both paternally and maternally expressed genes (PEGs and MEGs). The DMR is established in the male or female germline (the gDMR). Comprehensive comparative genome studies demonstrated that two imprinted regions, PEG10 and IGF2-H19, are conserved in both marsupials and eutherians and that PEG10 and H19 DMRs emerged in the therian ancestor at least 160 Ma, indicating the ancestral origin of genomic imprinting during therian mammal evolution. Importantly, these regions are known to be deeply involved in placental and embryonic growth. It appears that most maternal gDMRs are always associated with imprinting in eutherian mammals, but emerged at differing times during mammalian evolution. Thus, genomic imprinting could evolve from a defence mechanism against transposable elements that depended on DNA methylation established in germ cells.