Gastric bypass surgery is a bariatric procedure that creates a small pouch at the top of the stomach and connects it directly to the small intestine. This alteration helps patients lose weight by restricting food intake and reducing calorie absorption.