Here, we generated transgenic mice selectively expressing the Xaf1 gene in β-cells, and examined the effects of β-cell XAF1 on β-cell function and the development of diabetes in vivo. Here, XAF1 is linked to diabetes mellitus.