The spinal cord is a bundle of nerves that go to and from the brain. It is enclosed in and protected by the bony vertebral column. The main function of the spinal cord is transmission of neural inputs between the periphery and the brain.