Gastroenteritis is typically caused by a viral, bacterial, or parasitic infection. Despite being called the "stomach flu," it is not related to influenza. It spreads easily through contaminated food or water, or through contact with an infected person.