Gastroenteritis is the inflammation of the stomach and intestines. It may be caused by infection by bacteria, virus, or parasite that is passed through contaminated food or water, resulting in diarrhea and vomiting. Gastroenteritis occurs in people of all genders and ages.