The tail plays important roles in locomotion control in many animals. But in animals with multiple body segments, the roles of the hind body segments and corresponding innervating neurons in locomotion control are not clear. Here, using the Drosophila larva as the model animal, we investigated the roles of the posterior terminal segments in various modes of locomotion and found that they participate in all of them. In forward crawling, paralysis of the larval tail by blocking the Abdb-Gal4 labeled neurons in the posterior segments of VNC led to a slower locomotion speed but did not prevent the initiation of forward peristalsis. In backward crawling, larvae with the Abdb-Gal4 neurons inhibited were unable to generate effective displacement although waves of backward peristalsis could be initiated and persist. In head swing where the movement of the tail is not obvious, disabling the larval tail by blocking Abdb-Gal4 neurons led to increased bending amplitude upon touching the head. In the case of larval lateral rolling, larval tail paralysis by inhibition of Abdb-Gal4 neurons did not prevent the accomplishment of rolling, but resulted in slower rolling speed. Our work reveals that the contribution of Drosophila larval posterior VNC segments and corresponding body segments in the tail to locomotion is comprehensive but could be compensated at least partially by other body segments. We suggest that the decentralization in locomotion control with respect to animal body parts helps to maintain the robustness of locomotion in multi-segment animals.