Objective: To explore the clinical effect of domestic capsosol foam sclerotherapy in the treatment of hemorrhoids under transparent cap assisted endoscope. Methods: According to the experimental requirements, 120 cases of hemorrhoids hospitalized in gastroenterology department in our hospital from February to December in 2019 were selected as the treatment group. The foam sclerotherapy of polidocanol and the air in accordance with the 1:4 ratio was injected into varicose hemorrhoids and hemorrhoids through a transparent cap assisted endoscope. At the same time, 100 patients were selected as the control group and the patients were treated according to the routine protocol. The symptom score and clinical efficacy of the two groups were observed under different treatment schemes. Results: 120 patients were successfully injected with foam sclerotherapy under endoscope. There were significant differences in clinical symptom score and clinical efficacy between the injection sclerotherapy group and the control group. There were statistically significant differences in the bleeding, prolapse, painful defecation, anal foreign body sensation, impact on daily work, and hemorrhoids data between the treatment group and the control group (P<0.05). Conclusion: Transparent cap assisted endoscopic injection of polidocanol sclerotherapy in the treatment of hemorrhoids can effectively improve the clinical symptoms of patients, promote the improvement of the disease, and the curative effect is satisfactory. It is a new method of minimally invasive treatment of hemorrhoids, which is worthy of wide promotion in clinical practice.