Each adrenal gland is a two-part organ composed of an outer cortex and an inner medulla. The cortex arises in the embryo from a region of the mesoderm that also gives rise to the gonads. The medulla arises from ectoderm, which also gives rise to the sympathetic nervous system.