Surgery is required for external piles and third and fourth degree internal piles as they protrude outward causing pain, discomfort, and bleeding.