Surgery can be used to treat obesity. Gastric bypass is the most common weight loss surgery. It makes a person's stomach smaller so that they feel full after eating less food and causes their body to absorb less calories. People who have surgery are usually very obese.