Ulcers can be triggered by a variety of things, including spicy foods, alcohol, NSAIDs (nonsteroidal anti-inflammatory drugs), and smoking.