The results showed that tumor size, lymph node metastasis, preoperative serum CEA level, Bacteroides abundance and Enterococcus abundance were the independent risk factors for poor prognosis of ESD treatment (p < 0.05). This evidence concerns the gene CEACAM5 and metastatic malignant neoplasm in the lymph nodes.