Abstract Adverse nutritional conditions during the perinatal stage are related to early menopause in adulthood; however, the underlying mechanism is still unclear. Herein, we revealed that colostrum-activated ketone body elevation during the postnatal stage regulated primordial follicle reservoir size and then affected ovarian ageing. We found that the expression of the ketogenesis rate-limiting enzyme 3-hydroxy-3-methylglutaryl-CoA synthase 2 (Hmgcs2) was largely enhanced during primordial follicle pool formation after birth and might be activated in the ovaries by colostrum. Reactive oxygen species (ROS) elevation in the ovaries leads to follicle apoptosis to deplete damaged follicles, while Hmgcs2 deficiency enhances follicle apoptosis and thus decreases the size of the primordial follicle pool and leads to premature ovarian ageing (POA), which might be related to the activation of cellular endogenous antioxidant system. All these defects could be rescued by ketone body administration, which suppressed ROS-activated follicle apoptosis. Our results suggest that the internal metabolic homeostasis of new-born mice is critical for the primordial reservoir and that any intrauterine and perinatal undernutrition could result in POA.