We identified S100A12 as a key gene influencing the new-onset AF in sepsis through immune regulation, presenting considerable diagnostic and predictive value. This evidence concerns the gene S100A12 and atrial fibrillation.