A colostomy is a surgical procedure where a part of the colon is brought to the surface of the abdomen to create an artificial opening called a stoma. This procedure is often performed when a person is unable to pass stool through the rectum due to various medical conditions such as colon cancer, diverticulitis, or trauma.