Objective To investigate the effects of dexmedetomidine(Dex)on inflammatory factors and outcomes in mechanically ventilated sepsis patients.Methods Sixty mechanically ventilated sepsis patients were randomly divided into the dexmedetomidine group(n=31)and the midazolam group(n=29),receiving either dexmedetomidine or midazolam to maintain a RASS score of-2 to 0.Venous blood samples were col-lected before treatment(TO),and at 3 days(T1)and 7 days(T2)post-treatment to measure serum levels of CRP,PCT,and TNF-α.APACHE Ⅱ and SOFA scores were compared between the two groups on the 7th day of sedation.Additionally,the incidence of adverse reactions and the 28-day mortality rate were recorded.Re-sults CRP,PCT,and TNF-α levels significantly decreased in both groups post-treatment,with statistically significant differences compared to pre-treatment levels(P<0.05).Both APACHE Ⅱ and SOFA scores showed significant improvement post-treatment in both groups(P<0.05).The declines of CRP,PCT,TNF-α,and APACHE Ⅱ and SOFA scores were significantly greater in the dexmedetomidine group compared to the midazolam group(P<0.05).There was no statistically significant difference in the incidence of adverse e-vents and the 28-day mortality rate between the two groups(P>0.05).Conclusion Both dexmedetomidine and midazolam have effective anti-inflammatory effects in mechanically ventilated sepsis patients,with dexme-detomidine showing superior efficacy.