Eliminating the cause of the ulcer, such as smoking, NSAIDs, or alcohol.
Medicines to reduce the amount of acid in your digestive tract.
Antibiotic medicines if the ulcer is caused by the H. pylori bacterium.
An upper endoscopy to treat a bleeding ulcer.
Surgery if the bleeding is severe or if the ulcer created a hole somewhere in the digestive system.