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. The gene discussed is KCNN2; the disease is type 2 diabetes mellitus.