A neurologist is a doctor who diagnoses, treats, and prevents diseases of the nervous system, including the brain, spinal cord, nerves, and muscles. A neurologist specializes in disorders that may affect the central and peripheral nervous systems, as well as the consequences of damage to nerve fibers.