Surgical staplers for internal use are used to deliver staples to tissues inside the body during surgery for: Removing part of an organ (resection) Cutting through and sealing organs and tissues (transection) Creating connections between structures (anastomoses) Stapler surgery or stapled hemorrhoidectomy is a surgical technique for treating piles. It uses a stapling device to remove piles tissues. Doctors recommend this treatment procedure for patients whose piles have prolapsed or become abnormally large or who have shown little or no improvement with nonsurgical treatment