Here, we explored the effects of XAF1 on β-cell function and progression of diabetes in vivo. Here, XAF1 is linked to diabetes mellitus.