Neuroanatomy studies the structure and function of the nervous system, including the brain and spinal cord.