Inflammation caused by bacteria and erosion from stomach acids can cause peptic ulcers. Gastric, oesophageal and duodenal are the three kinds of peptic ulcers.