Illustration of colostomy surgery for colon cancer

In some cases, after the surgeon removes a portion of the colon, it may be necessary to attach the remaining colon to the outside of the body in a procedure called colostomy. Creating a hole (stoma) in the abdominal wall allows waste to leave the body. A colostomy bag attaches to the stoma to collect the waste.