Biliopancreatic diversion is a surgery that is done to treat obesity. It is done by reducing the stomach size. This restricts you from eating more as little food will make you feel full. This restriction of the food passing through the small intestine allows the patients to absorb fewer calories.