BACKGROUNDUropathogenic Escherichia coli (UPEC) is a common cause of urinary tract infections (UTI) in children and currently is one of the leading medical problems. Due to the increase in antibiotic resistance rate, herbal medicines with lower side effects were considered.OBJECTIVEThis study aimed to identify the afa, fimH, and sfa genes of UPEC bacteria isolated from pediatric UTI to investigate the effect of the thyme on the expression of fimH gene.STUDY DESIGNIn this cross-sectional study, 160 UPEC were isolated from pediatric UTIs. An antibiotic susceptibility test was performed on six families of antibiotics, including beta-lactams, quinolones, aminoglycosides, carbapenems, sulfonamides, and nitrofurantoin. The micro-broth dilution method was used to determine MIC of thymol. The biofilm production ability of isolated strains was quantified by the microtiter plate method. The PCR technique was used to detectfimH, afa, and sfa adhesion genes, and real-time PCR was used to measure the fimHgene expression.RESULTSThe results of the antibiogram showed that the lowest and highest resistance related to meropenem and imipenem (zero), and 72.5% for cephalothin. MIC showed 80.7% of the isolates were sensitive to thymol. The biofilm production results showed that 3.12%, 53.75%, and 43.12% of the isolates were strong, weak, and no-biofilm (Zero) producers, respectively. After thymol treatment, 26.25% and 73.75% of isolates were weak and no-producer (Zero) biofilms, respectively and there was a significant correlation (P-value = 0.042) compared to the control group. The frequency of fimH, sfa, and afa genes was 53.1%, 49.4%, and 29.4%, respectively. The expression of fimHgene after 48 h thymol treatment decreased significantly (P-value< 0.05).CONCLUSIONDue to the significant effects of thymol in preventing the expression of the adhesion gene (fimH) of UPEC bacteria, our study is a proof-of-concept study evaluating bacterial sensitivity to Thymol and its effect on biofilm production in vitro. Given the demonstrated promising results of Thymol's effectiveness and the increase in bacterial antibiotic resistance, further studies should be undertaken to determine the safety and effectiveness of Thymol use in the clinical treatment of urinary tract infection. We believe that Thymol may prove to be an effective adjunct to the treatment of bacterial urinary tract infections.