Here, we show that BL001, a small LRH-1 agonist, impedes hyperglycemia progression and the immune-dependent inflammation of pancreas in murine models of T1DM, and beta cell apoptosis in islets of type 2 diabetic patients, while increasing beta cell mass and insulin secretion. The gene discussed is NR5A2; the disease is type 1 diabetes mellitus.