Viral vectors allow for targeted gene manipulation. We demonstrate a method for conditional gene expression or ablation in the mouse spinal cord, using stereotaxic injection of a viral vector into the dorsal horn, a prominent site of synaptic contact between primary somatosensory afferents and neurons of the central nervous system.