Gastritis can be induced by H. pylori infection, excessive use of anti-inflammatory drugs, alcohol, stress, or an irritating diet. Inflammation of the gastric mucosa reduces its ability to protect the tissue from acid, promoting lesions and discomfort.