Gastric bypass and other weight-loss surgeries — known collectively as bariatric surgery — involve making changes to your digestive system to help you lose weight. Bariatric surgery is done when diet and exercise haven’t worked or when you have serious health problems because of your weight.