In summary, BAX, MIF, and TLR4 are crucial genes linking mitophagy and ion channels in AF, likely impacting the immune microenvironment through modulation of immune cell infiltration. Here, BAX is linked to atrial fibrillation.