Conclusion: Five immune-associated candidate hub genes (CLEC5A, KLRB1, LCN2, MCEMP1, and MMP9) were recognized, and the nomogram for the diagnosis of ROP with sepsis was developed. Here, MMP9 is linked to retinopathy of prematurity.