An ileostomy is where the small intestine (small bowel) is diverted through an opening in the abdomen (tummy). The opening is known as a stoma. A special bag is placed over the stoma to collect waste products that would usually pass through the colon (large intestine) and out of the body through the rectum and anus (back passage).