Sepsis and sepsis-related diseases cause a high rate of mortality worldwide. The molecular and cellular mechanisms of sepsis are still unclear. We aim to identify key genes in sepsis and reveal potential disease mechanisms. Six sepsis-related blood transcriptome datasets were collected and analyzed by weighted gene co-expression network analysis (WGCNA). Functional annotation was performed in the gProfiler tool. DSigDB was used for drug signature enrichment analysis. The proportion of immune cells was estimated by the CIBERSORT tool. The relationships between modules, immune cells, and survival were identified by correlation analysis and survival analysis. A total of 37 stable co-expressed gene modules were identified. These modules were associated with the critical biology process in sepsis. Four modules can independently separate patients with long and short survival. Three modules can recurrently separate sepsis and normal patients with high accuracy. Some modules can separate bacterial pneumonia, influenza pneumonia, mixed bacterial and influenza A pneumonia, and non-infective systemic inflammatory response syndrome (SIRS). Drug signature analysis identified drugs associated with sepsis, such as testosterone, phytoestrogens, ibuprofen, urea, dichlorvos, potassium persulfate, and vitamin B. Finally, a gene co-expression network database was constructed ( https://liqs.shinyapps.io/sepsis/ ). The recurrent modules in sepsis may facilitate disease diagnosis, prognosis, and treatment.© 2023. The Author(s).