Hydrogen sulfide (H2S), which is synthesized in the brain, modulates the neural network. Recently, the importance of H2S in respiratory central pattern generation has been recognized, yet the function of H2S in the medullary respiratory network remains poorly understood. Here, to evaluate the functional roles of H2S in the medullary respiratory network, the Bötzinger complex (BötC), the pre-Bötzinger complex (preBötC), and the rostral ventral respiratory group (rVRG), we observed the effects of inhibition of H2S synthesis at each region on the respiratory pattern by using an in situ arterially perfused preparation of decerebrated male rats. After microinjection of an H2S synthase inhibitor, cystathionine β-synthase, into the BötC or preBötC, the amplitude of the inspiratory burst decreased and the respiratory frequency increased according to shorter expiration and inspiration, respectively. These alterations were abolished or attenuated in the presence of a blocker of excitatory synaptic transmission. On the other hand, after microinjection of the H2S synthase inhibitor into the rVRG, the amplitude of the inspiratory burst was attenuated, and the respiratory frequency decreased, which was the opposite effect to those obtained by blockade of inhibitory synaptic transmission at the rVRG. These results suggest that H2S synthesized in the BötC and preBötC functions to limit respiratory frequency by sustaining the respiratory phase and to maintain the power of inspiration. In contrast, H2S synthesized in the rVRG functions to promote respiratory frequency by modulating the interval of inspiration and to maintain the power of inspiration. The underlying mechanism might facilitate excitatory synaptic transmission and/or attenuate inhibitory synaptic transmission.