Objective To understand the change and epidemic trend of common pathogenic types in viral diarrhea in Hanzhong City from 2016 to 2019, and to provide scientific basis for prevention and control of viral diarrhea. Methods The stool samples of infectious diarrhea cases were detected by colloidal gold method and real time RT-PCR for Rotavirus antigen and Norovirus nucleic acid in group A. Results 243 of 822 samples were positive, the positive rate was 29.56%, which was 42.80%, 5.76%, 50.62% and 0.82% respectively, compared with Rotavirus, Norovirus G I, Norovirus G H and Norovirus G I/G II mixed type in group A (P<0.05); the difference of the positive rate among the age groups was statistically significant (P<0.05). The viral diarrhea caused by Rotavirus and Norovirus in group A was seasonal. Conclusion From 2016 to 2019, the incidence rate of infectious diarrhea in Hanzhong showed a decreasing trend. Viral diarrhea mainly consisted of group A Rotavirus and Norovirus G H subtype. Based on the promotion of the vaccination of oral A group Rotavirus vaccine to reduce the incidence of children under 3 years old, the daily surveillance of Norovirus was further strengthened. [ABSTRACT FROM AUTHOR]