An ostomy is a procedure in which the colon (large intestine) or small intestine is cut and attached to a hole (stoma) made in the surface of the abdomen. Waste leaves your body through the stoma.