You may need surgery to treat a complete obstruction. Surgery can remove a tumor or adhesion, repair a hernia or fix a twisted intestine.