Bariatric surgery is an operation on the stomach and intestine used to treat obesity.