To explore the potential role of ambient temperature on infection transmission dynamics for pathogens, we used Escherichia coli O157:H7 in a dairy herd and the surrounding farm environment as a model system. For this system, we developed a mathematical model in which a Susceptible-Infectious-Susceptible (SIS) model of infection spread through the host population is coupled with a metapopulation model of E. coli O157:H7 free-living stage in the environment allowing bacterial growth to be influenced by ambient temperature. Model results indicate that seasonal variation in ambient temperature could have a considerable impact on pathogen populations in the environment, specifically on barn surfaces and in water troughs, and consequently on the prevalence of infection in the host population. Based on model assumptions, contaminated drinking water was the most important pathway of E. coli O157:H7 transmission to cattle. Sensitivity analysis indicated that water-borne transmission is amplified during the warmer months if the amount of standing drinking water available to the cattle herd is high. This is because warmer ambient temperature favors faster pathogen replication which when combined with slower water replacement-rate due to high amount of available standing water leads to a greater pathogen load in drinking water. These results offer a possible explanation of the seasonal variation in E. coli O157:H7 prevalence in cattle and suggest that improved drinking-water management could be used for control of this infection in cattle. Our study demonstrates how consideration of ambient temperature in transmission cycles of pathogens able to survive and grow in the environment outside the host could offer novel perspectives on the spread and control of infections caused by such pathogens.