Objective To investigate the effect of remimazolam on Th17 cells and their related factors in septic mice induced by cecal ligation.Methods Thirty-two male C57BL/6 mice were divided into 4 groups:a blank control group(Group N),a remimazolam group(Group R),a sepsis group(Group S),and a sepsis+remimazolam group(Group S+R).Mice were sacrificed by orbital blood collection 24 hours after injection.The pathological scores of lung tissues were observed under a light microscope after staining with hematoxylin-eosin(HE)method.The wet/dry(W/D)ratio of lung injury in mice was detected.The concentrations of IL-17 in plasma and lung tissues were detected by ELISA.The mRNA of RORγt in lung tissues was detected by real-time fluorescence quantitative PCR.The proportion of Th17 cells among CD4+T cells in peripheral blood and lung tissues was detected by flow cytometry.Results Obvious lung injury occurred in mice 24 hours af-ter cecal ligation.Compared with Group N,the scores of lung tissues and the W/D ratio were significantly in-creased,the expression levels of IL-17 in plasma and lung tissues of mice were increased,the expression of RORγt mRNA in lung tissues was increased,and the proportion of Th17 cells in CD4+T cells in blood and lung tissues was increased(P<0.05).After preoperative remimazolam pretreatment,compared with Group S,lung injury in Group S+R was significantly improved,the scores of lung tissues and the W/D ratio were sig-nificantly decreased compared with Group N,the expression levels of IL-17 in plasma and lung tissues of mice were decreased,the expression of RORγt mRNA in lung tissues was decreased,and the proportion of Th17 cells in CD4+T cells in blood and lung tissues was decreased(P<0.05).Conclusion Pretreatment with remimazolam can alleviate the degree of septic lung injury in mice,and its mechanism may be related to reduc-ing the differentiation of Th17 cells and decreasing the expression of IL-17 and its transcription factor RORγt.