A ganglion is a collection of nerve cell bodies located outside the central nervous system, playing a crucial role in transmitting signals between different parts of the body and the brain. They are essential components of the peripheral nervous system, involved in both sensory and motor functions, and can also refer to cystic swellings often found on tendons or joints.