Xbp1 deletion in beta cells of obese ob/ob or high-fat diet-fed mice triggered diabetes and worsened glucose intolerance by disrupting insulin secretory capacity. Here, INS is linked to diabetes mellitus.