A colostomy and an ileostomy are both procedures where a surgeon connects parts of the intestines to an opening in the abdomen where stool drains out.