It can be caused by a number of things.
The most common are constipation
with hard BMs, or hemorroidal problems. Try increasing your fluid intake and adding Metamucil one tablespoon night and morning. With increasing ruffage in your diet
. If this doesn't help see your doctor and get a definitive diagnosis