An endocrine gland at the base of the hypothalamus; consists of a posterior lobe (neurohypophysis), which stores and releases two hormones produced by the hypothalamus, and an anterior lobe (adenohypophysis), which produces and secretes many hormones that regulate diverse body functions.