A pancreas transplant is a surgery used to treat type 1 or occasionally type 2 diabetes. The surgery replaces the patient's failing pancreas with a healthy one from a donor.