A colostomy is a surgery used for an array of gastrointestinal disorders. During a colostomy, a piece of the colon is diverted to an artificial opening in the abdominal wall. The end of the colon is brought through the opening, forming a stoma. After the surgery, the colon and rectum are no longer connected beyond the colostomy, and the anus is no longer the exit for the stool.