The central nervous system consists of the brain and spinal cord. The brain is located in the cranial cavity and is responsible for integrating sensory information and coordinating motor commands. It is divided into the cerebrum, diencephalon, mesencephalon, metencephalon, and myelencephalon. The cerebrum is the largest part and is divided into four lobes. The peripheral nervous system includes nerves outside the brain and spinal cord that provide sensory information to the CNS and carry motor commands to tissues. It is divided functionally into the somatic and autonomic nervous systems.