The answer is the hypothalamus. It is a portion of the brain that comprises a quantity of small nuclei with an assortment of functions. One of the most significant purpose of the hypothalamus is to connect the nervous system to the endocrine system through the pituitary gland.