Stomach ulcers are painful sores that can be found in the stomach lining or small intestine. Stomach ulcers are the most visible sign of peptic ulcer disease. They occur when the thick layer of mucus that protects your stomach from digestive juices is reduced, thus enabling the digestive acids to eat away at the lining tissues of the stomach.