The somatic nervous system is part of the peripheral nervous system that controls voluntary movements and sensory input. It carries signals from the brain to muscles and from sensory organs back to the brain.