Given the intricate etiology of depression and the lack of effective biomarkers for clinical diagnosis, this study employed multiple data analysis methods to screen and validate genes associated with oxidative stress while delving into the mechanistic role played by IL1R1 gene in depth. Here, IL1R1 is linked to major depressive disorder.