The development of the gonads is part of the prenatal development of the reproductive system and ultimately forms the testes in males and the ovaries in females. The gonads initially develop from the mesothelial layer of the peritoneum. The ovary is differentiated into a central part, the medulla, covered by a surface layer, the germinal epithelium.