In this study, we identified the hub genes associated with AF/immune infiltration through a series of analytical methods and tools, including CTSS, NCF2, MNDA, CCR2, TYROBP, LAPTM5, IGSF6, PTPRC, AIF1, and ITGAL. The gene discussed is AIF1; the disease is atrial fibrillation.