This study was designed to determine whether metformin regulates atrial SK2 and SK3 in T2DM rats via the PKC/ERK signaling pathway to provide a potential theoretical basis for a mechanism of atrial ion channel remodeling in DM and the improvement of diabetes-induced AF. This evidence concerns the gene PRRT2 and atrial fibrillation.