The dorsal root ganglion (a.k.a. spinal ganglion) contains cell bodies of the sensory neurons which pass on in through the dorsal root.  The vental root merges with the dorsal root alongside the ganglion to form the spinal nerve.