Several factors related to cancer can cause or exacerbate diarrhea. Chemotherapy drugs, for instance, are known to irritate the lining of the gastrointestinal tract, leading to diarrhea. Certain cancers, particularly those affecting the gastrointestinal tract, can also directly cause diarrhea. Additionally, stress and anxiety associated with a cancer diagnosis can contribute to gastrointestinal symptoms.