The reticular formation is a network of neurons located in the brainstem that performs several important functions. It receives sensory information from the spinal cord and senses arousal levels. The reticular formation contains nuclei that are involved in motor control, sleep-wake cycles, autonomic functions, and modulating pain. It has ascending and descending pathways that connect to the thalamus and cerebral cortex and help regulate states of consciousness like sleep and wakefulness.