Diarrhea in dogs and cats can be caused by various factors. Some of the most common causes include dietary changes, food intolerance or allergies, ingestion of spoiled or inappropriate food, parasites, viral or bacterial infections, stress, certain medications or toxins, and underlying health conditions.