The nervous system is divided into the central nervous system (CNS) and peripheral nervous system (PNS). The CNS consists of the brain and spinal cord and is protected by three layers of tissue called meninges. Within the CNS, gray matter contains neurons and white matter contains myelinated axons. Neuroglia provide support to neurons in the CNS. The PNS connects the CNS to the rest of the body and is composed of nerves and ganglia. Neurons are the basic functional units and come in several types defined by their dendrites and axons.