Embryonic development in nonmammalian vertebrates depends entirely on nutritional reserves that are predominantly derived from vitellogenin proteins and stored in egg yolk. Mammals have evolved new resources, such as lactation and placentation, to nourish their developing and early offspring. However, the evolutionary timing and molecular events associated with this major phenotypic transition are not known. By means of sensitive comparative genomics analyses and evolutionary simulations, we here show that the three ancestral vitellogenin-encoding genes were progressively lost during mammalian evolution (until around 30–70 million years ago, Mya) in all but the egg-laying monotremes, which have retained a functional vitellogenin gene. Our analyses also provide evidence that the major milk resource genes, caseins, which have similar functional properties as vitellogenins, appeared in the common mammalian ancestor ∼200–310 Mya. Together, our data are compatible with the hypothesis that the emergence of lactation in the common mammalian ancestor and the development of placentation in eutherian and marsupial mammals allowed for the gradual loss of yolk-dependent nourishment during mammalian evolution. Egg yolk contains the nutrients required for the development of the nonmammalian vertebrate embryo. These nutrients derive by and large from a single set of proteins, vitellogenins, which are produced in the liver and provide or transport amino acids, lipids, phosphorous, and calcium to the egg. Mammals have evolved new nutritional resources for their developing and early offspring, such as lactation and placentation. However, the evolutionary timing and molecular events associated with this major phenotypic transition are not well understood. In this study, we have investigated the evolutionary fate of the three ancestral vitellogenin-encoding genes in mammals. Using detailed evolutionary analyses of genomes from the three major mammalian lineages (eutherian “placental” mammals, marsupials, and monotremes), we found that these genes progressively lost their functions and became pseudogenes relatively recently during mammalian evolution (the most recent inactivation event occurred roughly 30–70 million years ago). Monotremes, which lactate yet lay small parchment-shelled eggs, even retained a functional vitellogenin gene, consistent with their intermediate reproductive state. Our analyses also provide evidence that the major milk resource genes, caseins, which have similar functional properties as vitellogenins, appeared in the common mammalian ancestor ∼200–310 million years ago. Based on our data, we suggest that the emergence of the alternative resources for the mammalian young—lactation and then placentation—only gradually reduced the need for egg yolk resources (and hence functional vitellogenin genes) in mammals.