Abstract Background Postoperative atrial fibrillation (poAF) is self-limited AF that occurs within days after cardiac surgery in one-third of patients. Clinical and preclinical studies have demonstrated that the magnitude of the perioperative increase in systemic inflammation, in particular mediated by interleukin (IL)-6, correlates with poAF risk. However, no studies to-date have mechanistically linked IL-6 signaling to fundamental arrhythmia mechanisms or identified the specific cell types driving postoperative atrial IL-6 signaling. Methods We performed single-cell RNA sequencing (scRNAseq), followed by pseudotime trajectory and cell-cell communication analyses on atrial non-myocytes comparing mice with and without poAF. We followed up our scRNAseq findings with pharmacologic and genetic approaches in mice to validate pathways related to macrophage-mediated IL-6 signaling. We used confocal imaging to assess calcium-signaling mechanisms at the single atrial cardiomyocyte (ACM) level and performed parallel patch-clamp studies in isolated human ACMs as well as biochemical analyses of human atrial tissue to assess the translational relevance of our findings. Results Our scRNAseq results demonstrated macrophages to be the most prominently altered cell type in the atria of mice with poAF. Pseudotime trajectory analyses revealed IL-6 to be one of the top inflammatory pathways implicated in macrophage transcriptional state. Indeed, both macrophage depletion and conditional knockout of IL-6 receptors in macrophages were sufficient to prevent poAF. We found that inhibition of STAT3, which is downstream of the IL-6Ra, with FDA-approved phospho-STAT3 inhibitor TTI-101 prevented poAF in mice. Lastly, we demonstrate that enhanced STAT3 activity in poAF promotes arrhythmogenic Ca2+ sparks and waves through ryanodine receptor-2 dysfunction, and that CaMKII inhibition is sufficient to ameliorate Ca2+ mishandling at the single atrial myocyte level. Conclusions Taken together, we use an integrated approach incorporating mouse and human biochemical, functional, and single-cell sequencing data to demonstrate that infiltrating atrial macrophages are fundamentally required for poAF. IL-6 was found to be a critical pathway upregulated in poAF leading to downstream ryanodine receptor-2 dysfunction and atrial arrhythmogenesis. Our findings portend significant therapeutic utility by providing robust mechanistic evidence that targeting the IL-6 axis may be used for poAF prevention and treatment in a clinically amenable timeframe.