Intestinal parasites are usually transmitted when an animal ingests the eggs or spores in contaminated soil, water, or food. Puppies can contract a parasite from their mothers, either in utero or from nursing. Tapeworms can be contracted by dogs when they eat an infected flea.