If you're constipated, passing large, hard, or dry stools can cause an anal fissure. Getting plenty of fiber in your diet -- especially from fruits and vegetables -- can help prevent constipation, though. Get 20 to 35 grams of fiber per day. Foods that are good sources include: 1  Wheat bran. 2  Oat bran.