The nervous system is composed of the central nervous system (brain and spinal cord) and the peripheral nervous system (nerves).