This study uncovers potential genetic drivers of pathological events in cardiac arrhythmias, particularly the SPP1+ macrophage-mediated inflammation and fibrosis. Here, SPP1 is linked to cardiac rhythm disease.