The peripheral nervous system, or PNS, is part of the nervous system. It consists of the nerves and ganglia which are outside the central nervous system (the brain and spinal cord). The main function of the PNS is to connect the central nervous system (CNS) to the limbs and organs.