information:classification, information:highlighting
Development

In typical prenatal development, sex organs originate from a common primordium during early gestation and differentiate into male or female sexes. The SRY gene, usually located on the Y chromosome and encoding the testis determining factor, determines the direction of the differentiation. The absence of it allows the gonads to continue to develop into ovaries.

The development of the internal and external reproductive organs is determined by hormones produced by certain fetal gonads (ovaries or testicles) and the cells' response to them. The initial appearance of the fetal genitalia looks female-like: a pair of urogenital folds with a small protuberance in the middle, and the urethra behind the protuberance. If the fetus has testes and the testes produce testosterone, and if the cells of the genitals respond to the testosterone, the outer urogenital folds swell and fuse in the midline to produce the scrotum; the protuberance grows larger and straighter to form the penis; the inner urogenital swellings grow, wrap around the penis, and fuse in the midline to form the penile raphe. Each sex organ in one sex has a homologous counterpart.

The process of sexual differentiation includes the development of secondary sexual characteristics, such as patterns of pubic and facial hair and female breasts that emerge at puberty.

Because of the strong sexual selection affecting the structure and function of genitalia, they form an organ system that evolves rapidly. A great variety of genital form and function may therefore be found among animals.