Toxicity that causes injury to the gastrointestinal tract or damages its function. Usually caused by exposure to xenobiotics such as drugs, food additives, alcohol, chlorinated solvents, peroxidized fatty acids, fungal toxins, radioactive isotopes, environmental toxicants, and even some medicinal plants. This can include gastric perforation, colitis, inflammatory bowel disease. The disease is gastrointestinal toxicity (EFO_0011050).