The thalamus and the hypothalamus lie underneath the cerebrum and connect it to the brain stem. The thalamus consists of two rounded masses of gray tissue lying within the middle of the brain, between the two cerebral hemispheres. The thalamus is the main relay station for incoming sensory signals to the cerebral cortex and for outgoing motor signals from it. All sensory input to the brain, except that of the sense of smell, connects to individual nuclei of the thalamus.
The hypothalamus lies beneath the thalamus on the midline at the base of the brain. It regulates or is involved directly in the control of many of the body's vital drives and activities, such as eating, drinking, temperature regulation, sleep, emotional behavior, and sexual activity. It also controls the function of internal body organs by means of the autonomic nervous system, interacts closely with the pituitary gland, and helps coordinate activities of the brain stem.