A colostomy bag is an artificial opening in the abdominal wall that is created during surgery. This opening allows waste to be removed from the body when the colon or rectum is not functioning properly. A colostomy bag does not affect fertility.