Colostomy surgery is done to create an opening in the front of the abdomen for stool (faeces) to leave the body through an ostomy (stoma). Part of the large intestine is attached to the stoma. A bag, also called a pouch, is fitted over the stoma. Stool and gas will collect in the bag.