Gastroenteritis is a relatively common condition that occurs when the stomach and intestines become inflamed due to infection by viruses, bacteria or parasites.