What causes piles?

Piles usually occur without any precipitating factor. They can, however, be associated with straining at defecation, constipation or pregnancy .