Helicobacter pylori, or H. pylori, is the most common cause of peptic ulcers. Use of nonsteroidal anti-inflammatory drugs, such as aspirin and ibuprofen, is the second most common cause of peptic ulcers.