Endogenous sulfur dioxide (SO2) and hydrogen sulfide (H2S) abnormality are newly identified gasotransmitters regulating hippocampal injury. Objective: This research aimed to investigate the effect of endogenous H2S on the SO2 generation in the BV2 microglial and explore its significance in the microglial inflammation in vitro and in vivo. Hydroxylamine (HA), an inhibitor of cystathionine β-synthase (CBS), was employed to induce hippocampal H2S/CBS system deficiency in rats. Rats treated with HA exhibited reduced levels of H2S in the hippocampus, elevated SO2 levels, and increased hippocampal inflammatory response, and treatment with l-aspartate-β-hydroxamate (HDX), an inhibitor of endogenous SO2, further exacerbated hippocampal inflammatory response due to H2S deficiency. In in vivo experiment, endogenous H2S deficiency induced by CBS knockdown increases SO2 levels, elevates the expression levels of M1 polarization markers iNOS and IL-1β in BV2 microglial, and increases the protein expression levels of TLR4, MyD88, p-p65, TNF-α, and IL-6. Inhibition of SO2 with HDX further exacerbates the levels of M1 polarization markers iNOS and IL-1β, as well as the protein expression levels of TLR4, MyD88, NF-κB p-p65, TNF-α, and IL-6 in BV2 cells. In contrast, SO2 donors alleviate microglial M1 polarization and inflammatory responses induced by H2S/CBS deficiency. Furthermore, it was found that overexpression of TLR4 reverses the inhibitory effect of SO2 on the expression levels of iNOS, IL-1β, MyD88, p-p65, TNF-α, and IL-6 in microglia. Moreover, H2S did not alter the expression of aspartate aminotransferase (AAT) 1, a key enzyme involved in the synthesis of SO2, while reducing the activity of AAT in BV2 cells, thus contributing to inhibiting the production of endogenous SO2. In terms of mechanism, H2S caused persulfidation of the AAT1 protein in BV2 cells and purified AAT1 protein. The presence of DTT or C192S mutations in BV2 cells prevented H2S-induced persulfidation of AAT1 and resulted in the restoration of AAT1 enzyme activity. In summary, SO2 inhibits microglial M1 polarization by suppressing the TLR4/MyD88/p-p65 signaling pathway, thereby alleviating microglia inflammation induced by H2S deficiency. H2S inhibits the activity of AAT by persulfidating AAT1 at the Cys192 site, thereby reducing the production of SO2 in BV2 microglia. These results suggest that endogenous SO2 serves as a compensatory defense system against microglia inflammation in cases where the H2S/CBS pathway is disrupted.