A system and method for treating hemorrhoidal piles, addressing both cause and symptoms, by endoluminal/interstitial application of energy are disclosed. Inflamed dilated blood vessels (hemorrhoids/piles) are caused due to connective tissue disorder, relative increase in pressure in the superior hemorrhoidal artery and weakening of the vessels' valves. The dilated blood arteries in anal/rectal region are irradiated from inside the pile using (laser) energy for minimal pain/discomfort. The center of the pile is irradiated over a certain diameter, absorbing energy; is denatured causing volume reduction. Central vessels located in the same diameter are obliterated immediately relieving bleeding. In treatment, new connective tissue replaces the coagulated tissue. Closing inflowing arteries further shrinks piles in weeks to three months. Complications are highly diminished. A hand-piece and a fiber with a sharp distal tip are beneficial. Including an imaging system, (ultrasound imaging, optical coherence tomography) and an intelligent system to calculate necessary laser energy parameters help address each pile individually.