Limited information on the virome and bacterial community hampers our ability to discern systemic ecological risk factors that cause cattle diarrhea, which has become a pressing issue in the control of disease. A total of 110 viruses, 1,011 bacterial genera, and 322 complete viral genomes were identified from 70 sequencing samples mixed with 1,120 fecal samples from 58 farms in northeast China. For the diarrheic samples, the identified virome and bacterial community varied in terms of composition, abundance, diversity, and geographic distribution in relation to different disease-associated ecological factors; the abundance of identified viruses and bacteria was significantly correlated with the host factors of clinical status, cattle type, and age, and with environmental factors such as aquaculture model and geographical location (P < 0.05); a significant interaction occurred between viruses and viruses, bacteria and bacteria, as well as between bacteria and viruses (P < 0.05). The abundance of SMB53, Butyrivibrio, Facklamia, Trichococcus, and Turicibacter was significantly correlated with the health status of cattle (P < 0.05). The proportion of BRV, BCoV, BKV, BToV, BoNoV, BoNeV, BoAstV, BEV, BoPV, and BVDV in 1,120 fecal samples varied from 1.61% to 12.05%. A series of significant correlations were observed between the prevalence of individual viruses and the disease-associated ecological factors. A genome-based phylogenetic analysis revealed high variability of 10 bovine enteric viruses. The bovine hungarovirus was initially identified in both dairy and beef cattle in China. This study elucidates the fecal virome and bacterial community signatures of cattle affected by diarrhea, and reveals novel disease-associated ecological risk factors, including cattle type, cattle age, aquaculture model, and geographical location.IMPORTANCEThe lack of data on the virome and bacterial community restricts our capability to recognize ecological risk factors for bovine diarrhea disease, thereby hindering our overall comprehension of the disease's cause. In this study, we found that, for the diarrheal samples, the identified virome and bacterial community varied in terms of composition, abundance, diversity, configuration, and geographic distribution in relation to different disease-associated ecological factors. A series of significant correlations were observed between the prevalence of individual viruses and the disease-associated ecological factors. Our study aims to uncover novel ecological risk factors of bovine diarrheal disease by examining the pathogenic microorganism-host-environment disease ecology, thereby providing a new perspective on the control of bovine diarrheal diseases.