While stress itself may not directly cause peptic ulcers, it can contribute to their development or exacerbation. Prolonged stress can lead to increased stomach acid production and compromise the protective mechanisms of the stomach lining, making it more susceptible to damage from factors like H. pylori infections or NSAID use. Stress management techniques are important in preventing and managing peptic ulcers.