Insects and mammals share similarities of neural organization underlying the perception of odors, taste, vision, sound, and gravity. We observed that insect somatosensation also corresponds to that of mammals. In Drosophila, the projections of all the somatosensory neuron types to the insect's equivalent of the spinal cord segregated into modality-specific layers comparable to those in mammals. Some sensory neurons innervate the ventral brain directly to form modality-specific and topological somatosensory maps. Ascending interneurons with dendrites in matching layers of the nerve cord send axons that converge to respective brain regions. Pathways arising from leg somatosensory neurons encode distinct qualities of leg movement information and play different roles in ground detection. Establishment of the ground pattern and genetic tools for neuronal manipulation should provide the basis for elucidating the mechanisms underlying somatosensation.