Hemorrhoidectomy surgery may be painful, but different procedures to remove less serious hemorrhoids may be painless. Hemorrhoids, commonly known as piles, are engorged veins located around the anus or in the lower rectum. Hemorrhoids occur as a result of excessive straining, usually during defecation.