The hypothalamus links the nervous and endocrine systems by way of the pituitary gland. Its function is to secrete releasing hormones and inhibiting hormones that stimulate or inhibit (like their names imply) production of hormones in the anterior pituitary.