Inflammation of the stomach, also known as gastritis, occurs when the lining of your stomach becomes inflamed. There are several causes of gastritis, including Helicobacter pylori (a type of bacteria) infection, taking certain types of painkillers (such as ibuprofen and aspirin), drinking too much alcohol, and being under large amounts of stress.