Here, the authors report that ectopic PITX2 expression dosage-dependently disrupts pacemaker cell state and function, and atrial rhythm, linking chromatin conformation of the PITX2 locus to both sinus node dysfunction and atrial fibrillation. Here, PITX2 is linked to atrial fibrillation.