Locomotor systems generate diverse motor patterns to produce the movements underlying behavior, requiring that motor neurons be recruited at various phases of the locomotor cycle. Reciprocal inhibition produces alternating motor patterns; however, the mechanisms that generate other phasic relationships between intrasegmental motor pools are unknown. Here, we investigate one such motor pattern in the Drosophila larva, using a multidisciplinary approach including electrophysiology and ssTEM-based circuit reconstruction. We find that two motor pools that are sequentially recruited during locomotion have identical excitable properties. In contrast, they receive input from divergent premotor circuits. We find that this motor pattern is not orchestrated by differential excitatory input but by a GABAergic interneuron acting as a delay line to the later-recruited motor pool. Our findings show how a motor pattern is generated as a function of the modular organization of locomotor networks through segregation of inhibition, a potentially general mechanism for sequential motor patterns.