Piles or hemorrhoids are swellings that occur inside and around the anus and the anal canal. The anal canal is the last part of the large intestine. There are many small veins or blood vessels within the lining of the anal canal.