Peptic ulcers are treated with medications, including antacids, H. pylori eradication drugs and gastric mucosal protectors. If medication is not effective, endoscopic haemostasis may also be performed; if this is still not effective, surgical haemostasis is required.