Neurology is the branch of medicine that focuses on the study of the nervous system, which includes the brain, spinal cord, and peripheral nerves. The nervous system is responsible for controlling and coordinating various bodily functions, from breathing and heartbeat to movement, sensation, and cognition.