Objective To explore the correlation between reproductive tract pathogen infection and ectopic pregnancy(EP),and to reduce the incidence rate of ectopic pregnancy.Methods 69 EP patients received treatment in Beihai Peoples Hospital from January 2023 to December 2023 were retrospectively analyzed as the observation group,and 69 patients with a history of normal pregnant in the outpatient clinic during the same period were analyzed as the control group.The DNA tests of cervical secretions were performed in the two groups for the detection of ureaplasma urealyticum(UU),chlamydia trachomatis(CT)and neisseria gonorrhoeae(NG).Results The UU infection rate of the observation group was 52.17%(36 positive cases)and the CT infection rate was 5.8%(4 positive cases),which were higher than the UU infection rate of the control group which was 27.54%(19 positive cases)and the CT infection rate of 1.45%(1 positive case),respectively,and the NG infection rate of both group was 0.00%(0 case ofpositive).There was a statistically significant difference in UU infection rate between the two groups(P=0.003).Conclusions Genital tract UU infection was closely associated withthe development of EP.Pre-pregnancy testing for reproductive tract pathogens and adequate courses of antibiotics could help to reduce the incidence of EP.