There are a number of factors that cause ulcers like constipation, hereditary factors, hormonal changes, excess acidity, accidental cheek bites, stress and deficiencies of vitamin B complex, vitamin C, iron, or other nutrients.