A cat can have diarrhea for many reasons, including dietary changes, stress, parasites, infections (viral or bacterial), inflammatory bowel disease, metabolic diseases, medication side effects, constipation, or ingestion of toxins and foreign objects. Mild bouts may occur from eating something that doesn't agree with them or switching food brands, but more serious causes include gut infections, cancer, liver or kidney disease, and pancreatitis. If diarrhea persists for more than a day or is accompanied by other symptoms like lethargy or vomiting, it is important to consult a veterinarian for proper diagnosis and treatment.