An ostomy is a surgical procedure that is done to reroute a part of the large intestine, small intestine, or urinary system. This rerouting involves creating a stoma somewhere in the abdomen to allow feces or urine to exit the body instead of taking the usual path. An ostomy is typically done for a life-saving measure that bypasses a portion of the body that no longer functions as it should.