The study of the structure and function of the nervous system, including the brain, spinal cord, neurons, and other tissues.