Weight loss surgery, also called bariatric surgery, is used to treat people who are dangerously obese. This type of surgery is only available on the NHS to treat people with potentially life-threatening obesity when other treatments, such as lifestyle changes, haven't worked.