Shedding of Escherichia coli O157:H7 and Listeria monocytogenes in ruminant manure is well reported. However, the influence of dietary manipulation on the shedding of the pathogens is not well understood. This study was conducted to improve the understanding of the relationship between dietary feed composition and pathogen shedding in dairy feces, particularly E. coli O157:H7 and L. monocytogenes. Twelve cows were randomly assigned to a 2 Ã 2 factorial arrangement of 2 dietary forage levels: low forage (37.4% of dry matter [DM]) vs. high forage (HF, 53.3% of DM) and two dietary crude protein (CP) levels: low protein (LP, 15.2% of DM) vs. high protein (HP, 18.5% of DM) in a 4 Ã 4 replicated Latin square design with four periods each including 15 d adaptation and 3 d sample collection. In CP treatments, significantly low concentrations of L. monocytogenes were observed from cows fed the HP (0.9-1.6 log10 cfu/g) compared to the LP diet (1.3â2.1 log10 cfu/g). Significant interaction effect was observed between dietary forage and crude protein on the presence of E. coli O157:H7 (P < 0.05) but not on L. monocytogenes. On average, the highest E. coli O157:H7 concentration (6.5 log10 cfu/g of feces) was observed from the HF and HP diet and the lowest concentration was 6.2 log10cfu/g from the HF and LP diet. The average L. monocytogenes shedding was within the range of 1.8 to 2.4 log 10cfu/g among the treatments. The study showed that diet has an influence on the shedding of pathogenic bacteria in dairy excreta.