Depending on your type of diabetes and your overall condition, you may be a candidate for surgery to help control your diabetes.
Type 1 Diabetes--Pancreas transplant
Transplants are reserved for people with uncontrolled diabetes or have serious complications. Transplant procedures carry some serious risks and are not always successful.  With a successful pancreas transplant, you would no longer need insulin therapy. But, you’d have to take potent drugs for the rest of your life to prevent organ rejection. These drugs can pose risks that can be worse for your health than the diabetes.
Other types of transplants are being studied:

Type 2 Diabetes--Bariatric or weight loss surgery

If your body mass index (BMI) is greater than 35, you may be a candidate for weight-loss surgery (bariatric surgery). Blood sugar levels return to normal in 55 to 95 percent of people with diabetes. The surgery is expensive and there are risks involved. You’ll have to make drastic lifestyle changes and long-term complications may include nutritional deficiencies and osteoporosis.