The spinal cord is protected by three layers of meninges - the dura mater, arachnoid mater, and pia mater. It extends from the foramen magnum to the lower back and gives rise to 31 pairs of spinal nerves that innervate various parts of the body. The spinal cord has gray matter containing nerve cell bodies in the center surrounded by white matter made up of nerve fibers. It is segmented into cervical, thoracic, lumbar, sacral and coccygeal regions.