When dieting and exercising fail to help patients lose weight, surgery may help. Surgery to help patients lose weight is known as bariatric surgery. Gastric bypass is a type of bariatric surgery. Your doctors may recommend that you undergo gastric bypass surgery. The decision to have this surgery is yours.