Stomach ulcers are mainly caused by an infection of helicobacter pylori bacteria or from taking excess of non-steroidal anti-inflammatory medicines such as ibuprofen and aspirin.