Bariatric surgery is a type of surgery to help you lose weight when diet and exercise alone has not been successful. The type of bariatric surgery that works best for you will depend on several factors. These include your general health, your medical needs, and your own preference.