There are two major groups of ganglia: spinal ganglia and autonomic ganglia. The former contains the cell bodies of sensorynerves and the latter contains the cell bodies of autonomic nerves.
In the autonomic nervous system, fibers extending from the CNS to the ganglion are known as preganglionic fibers, while those from the ganglion to the effector organ are called postganglionic fibers.