Both the testes and ovaries are endocrine organs that secrete sex hormones, which are critical for the regulation of reproductive functions. In males, testosterone promotes the development of secondary sexual characteristics and the maintenance of spermatogenesis. In females, estrogen and progesterone regulate the menstrual cycle, prepare the endometrium for implantation, and support pregnancy.