The mechanism and disease-relevance of pancreatic b-cell heterogeneity remains elusive. Here the authors show that variable HNF1A-FXYD2 activity drives single b-cell heterogeneity at transcriptomic, epigenomic, and electro-physiological levels, which strongly mark the progression of type 2 diabetes.