During the sclerotherapy procedure, a solution is injected directly into the affected veins, causing them to shrink and eventually fade away. This treatment is commonly used to improve the appearance of the veins and reduce symptoms such as pain, swelling, and discomfort.