The hypothalamus is located below the thalamus, just above the brain stem. One of the most important functions of the hypothalamus is to link the nervous system to the endocrine system via the pituitary gland (hypophysis).