The frequency of virulence genes was not significantly different between pyelonephritis and cystitis UPEC strains in the studied patients, but the prevalence rates of hlyA and papC genes were higher among UPEC strains isolated from inpatients compared to outpatients; hence, they could be considered as useful targets for prophylactic interventions. This evidence concerns the gene PCDH8 and pyelonephritis.