Foam sclerotherapy initiates an inflammatory response that ultimately destroys the vein endothelium, which is the lining of the vein wall. This inflammatory response, known as phlebitis, is the treatment's mode of action rather than a complication.