In this regard, we discuss the potential immune and metabolic mechanisms through which vitamin D and DPP-4 inhibitors can promote the long-term function and survival of transplanted islets in patients with T1D receiving various types of beta-cell replacement therapies, including therapeutic approaches using encapsulated stem cell-derived beta cells. This evidence concerns the gene DPP4 and type 1 diabetes mellitus.