Development of the gonads
The development of the gonads is part of the prenatal development of the reproductive system and ultimately forms the testicles in males and the ovaries in females. The immature ova originate from cells from the dorsal endoderm of the yolk sac.
Source: Wikipedia — Development of the gonads (CC BY-SA 4.0)