Piles are swollen veins of the anal passage. When a person passes hard stools or exerts lot of pressure due to constipation, the veins in anal canal get stretched and bruised to swell and become painful. These swollen veins are named as hemorrhoids or piles.