In summary, Xrcc6 may promote immune microenvironment remodeling following myocardial ischemia–reperfusion injury by regulating macrophage polarization. Here, XRCC6 is linked to myocardial ischemia.