Most ulcers are caused by a bacterial infection, but acid in the stomach contributes to it, making ulcers more painful. The following tips may help an ulcer heal:
- Don't smoke.
- Avoid taking anti-inflammatory medications, such as ibuprofen or aspirin.
- Avoid caffeinated foods and beverages, and alcohol.
- Avoid foods or drinks that cause you pain, discomfort or heartburn.

