Gastritis is an inflammation of the stomach lining. Acute gastritis is typically due to a viral or bacterial infection. Chronic gastritis can be caused by excessive alcohol use, vomiting, reflux, stress, or the use of medications such as aspirin or NSAIDs.