Objective: Diabetic retinopathy (DR) is a chronic progressive eye disease that affects millions of diabetic patients worldwide, and ferroptosis may contribute to the underlying mechanisms of DR. The main objective of this work is to explore key genes associated with ferroptosis in DR and to determine their feasibility as diagnostic markers. Methods: WGCNA identify the most relevant signature modules in DR. Machine learning methods were used to de-screen the feature genes. ssGSEA calculated the scoring of immune cells in the DR versus control samples and compared the associations with the core genes by Spearman correlation. Results: We identified 2,897 differential genes in DR versus normal samples. WGCNA found tan module to have the highest correlation with DR patients. Finally, 20 intersecting genes were obtained from differential genes, tan module and iron death genes, which were screened by LASSO and SVM-RFE method, and together identified 6 genes as potential diagnostic markers. qPCR verified the expression and ROC curves confirmed the diagnostic accuracy of the 6 genes. In addition, our ssGSEA scoring identified these 6 core genes as closely associated with immune infiltrating cells. Conclusion: In conclusion, we analyzed for the first time the potential link of iron death in the pathogenesis of DR. This has important implications for future studies of iron death-mediated pro-inflammatory immune mechanisms.