An ileostomy is an opening in the abdominal wall that a surgeon makes to provide a way for the small intestine to release stool. After an ileostomy, a person’s stool will be loose or porridge-like.