Escherichia coli infection can cause urinary tract infections, intestinal infections and other diseases, the treatment time varies according to the type of disease, the degree of infection and other factors, for example, acute cystitis caused by Escherichia coli usually requires 3-7 days of treatment, and mild pyelonephritis caused by Escherichia coli requires 10-14 days. When Escherichia coli infects the urinary system, it can cause urinary tract infections, such as acute cystitis and acute pyelonephritis. The course of treatment for acute cystitis with cephalosporin, amoxicillin and other drugs is usually 3~7 days, and the test needs to be repeated one week after stopping the drugs, and another two weeks of antibiotic treatment needs to be given if it is positive. Mild pyelonephritis needs to be treated with medication for 10 to 14 days. Acute gastroenteritis caused by Escherichia coli is usually treated with medication for one week if the infection is not severe; if the infection is severe, it may take longer than one week. Patients with Escherichia coli infections are advised to go to the hospital for targeted treatment under the guidance of a doctor.