Development of piles is a common problem in those having long standing constipation. In your case, constipation is likely to be the cause of piles. For this you need to see your doctor in order to find out the reason for your constipation, because as long as the constipation is not taken care of, the problem of piles will keep on recurring. You must take stool softeners or fibre supplements so that you do not pass hard stools. For piles local application of ointments as you are applying along with sitz bath often gives good relief.