The most common causes of gastric ulcers include: - Infection with the bacterium Helicobacter pylori - Prolonged use of nonsteroidal anti-inflammatory drugs (NSAIDs) like ibuprofen and aspirin - Excessive alcohol consumption - Smoking - Stress and spicy foods can exacerbate symptoms but are not primary causes