Gastritis may be caused by:  H. pylori infection. This is the most common cause of nonerosive gastritis. Prolonged use of NSAIDs. This is the most common cause of erosive gastritis.