Sexually transmitted infections (STIs) increase gradually and have become a public health problem in the world. UU, CT, NG, and MG are four common STI pathogens. Our retrospective study analyzed the clinical situation and the laboratory data of patients infected with the four pathogens. The prevalence of the four pathogens, detected in urine and genital tract secretion, was studied in Hangzhou, China. A total of 3,168 male and female patients were randomly selected from February 2023 to February 2024. Urine and genital secretions were collected, and four STI pathogens were controlled for detection. Data were collected from the hospital's electronic medical records, and SPSS 25.0 software was used to perform a statistical analysis. Among 3,168 patients, a total of 1,527 were detected as positive, and the positive rate was 48.20%. The age of patients ranged from 13 - 98 years, with an average age of 45.6. The total of patients consisted of 2,191 males and 977 females, which had a significant difference (p < 0.05). Specimens were mainly collected from the Department of Dermatovenerology, Urological Surgery, Obstetrics and Gynecology, and so on. The positive rate was statistically different between male and female patients (p < 0.05). Single infection performed a main role and accounted for 79.57% of all of the positive patients. In the ≤ 20 age group, the positive rate was the highest and was as high as 77.65%. In detail, single infection caused by UU dominated, especially in the 21 - 30 age group. Double infection caused by UU and CT and triple infection caused by UU, CT, and NG were the majority, both especially in the 21 - 30 age group. There were significant differences in the positive rates in the different age groups and in the four pathogens (p < 0.05). Quadruple infection was very rare and had only been detected in one patient. The prevalence of the four pathogens in Hangzhou was different from other regions. More male than female patients, more single than multiple infections, and more single and multiple infections occurring in young people were the features in Hangzhou. The study would provide reference for prevention, diagnosis, and treatment of STI.