The aim of this study was to investigate the effect of surgical intervention on the expression of leukemia inhibitory factor (LIF) and L-selectin ligand in the endometrium of patients with hydrosalpinx during the implantation window. A total of 60 patients with hydrosalpinx and 30 patients with tubal obstruction were recruited, and immunohistochemistry was performed to detect the expression of LIF and L-selectin ligand in the endometrium of hydrosalpinx patients before and after surgery and in the endometrium of patients with tubal obstruction. The expression of LIF and L-selectin ligand in the endometrium of hydrosalpinx patients before surgery was markedly lower than that of patients with tubal obstruction (P<0.05). Following surgery, the expression of LIF and L-selectin ligand in the endometrium of hydrosalpinx patients was comparable to that of patients with tubal obstruction (P>0.05). In addition, there was a pronounced difference in the expression of LIF and L-selectin ligand in the endometrium before and after surgery in patients with hydrosalpinx (P<0.05). Hydrosalpinx reduces the expression of LIF and L-selectin ligand in the endometrium during the implantation window. LIF and L-selectin ligand may be important factors influencing the endometrial receptivity of hydrosalpinx patients, and surgery is capable of improving the expression of LIF and L-selectin ligand in the endometrium during the implantation window.