Located beneath the cerebral hemispheres in the back of the skull, the structure of the central nervous system contains nuclei that play a crucial role in maintaining wakefulness and activating the cortex, among other functions.