Located at the base of the skull, the pituitary gland is protected by a bony structure called the sella turcica.

The pituitary gland, or hypophysis, is an endocrine gland about the size of a pea that sits in the small, bony cavity (sella turcica) at the base of the brain. Its posterior lobe is connected to a part of the brain called the hypothalamus via the infundibulum (or stalk), giving rise to the tuberoinfundibular pathway. The posterior lobe is thus derived from neural ectoderm while the anterior lobe is derived from oral ectoderm. The anterior pituitary lobe receives releasing hormones from the hypothalamus via a portal vein system. The pituitary gland secretes hormones regulating a wide variety of bodily activities, including trophic hormones that stimulate other endocrine glands. For a while, this led scientists to call it the master gland, but now we know that it is in fact regulated by releasing hormones from the hypothalamus. It is physically attached to the brain by the pituitary, or hypophysealstalk connected with the median eminence.

The pituitary gland is divided into two sections: the anterior lobe (adenohypophysis) and the posterior lobe (neurohypophysis). The posterior pituitary is, in effect, a projection of the hypothalamus. It does not produce its own hormones, but only stores and releases the hormones oxytocin and antidiuretic hormone (ADH - also known as vasopressin).

There is also an intermediate lobe in many animals. In adult humans it is just a thin layer of cells between the anterior and posterior pituitary, nearly indistinguishable from the anterior lobe. The intermediate lobe produces melanocyte-stimulating hormone (MSH), although this function is often (imprecisely) attributed to the anterior pituitary.