While diarrhea cannot always be prevented, you can reduce the risk by practicing good hygiene, including regular handwashing, avoiding undercooked or contaminated food, and staying up-to-date on vaccinations for diseases that can cause diarrhea.