Metabolic surgery, also known as bariatric surgery, treats obesity and related metabolic disorders like type 2 diabetes.