Erythromycin can treat urinary tract infections, mainly applied to urinary tract infections caused by mycoplasma and chlamydia, which can be treated with erythromycin or roxithromycin, doxycycline, and other drugs. Before treatment, you need to go to the hospital for mycoplasma and chlamydia examination, if there is a positive manifestation of mycoplasma and chlamydia, then you can use erythromycin for treatment, otherwise, it is recommended to use other types of antibacterial soles for treatment, such as quinolone antibiotics and cephalosporin antibiotics for treatment. Erythromycin is not effective in treating urinary tract infections caused by Escherichia coli, gonococci, Klebsiella, etc. Therefore, it cannot be used for non-specific urinary tract infections, gonococcal urethritis, and pyelonephritis is not treated with erythromycin, and it is recommended to choose cephalosporin antibacterial agents for treatment. Erythromycin is more effective against gram-positive bacteria and mycoplasma and chlamydia, so the vast majority of them are applied to the manifestation of urethritis in urinary tract infections.