Metabolic surgery is a type of surgical procedure that alters gastrointestinal anatomy to treat type 2 diabetes. It is primarily indicated for type 2 diabetes patients with a certain degree of obesity. Common procedures include sleeve gastrectomy, gastric bypass surgery, adjustable gastric banding, and biliopancreatic diversion.