Extraintestinal pathogenic Escherichia coli (ExPEC), especially uropathogenic E. coli (UPEC) are responsible for urinary tract infections (UTIs), while diarrheagenic E. coli (DEC) cause foodborne illnesses. These pathogenic E. coli are a serious threat to human health and a public concern worldwide. However, the evidence on pork E. coli (PEC) harboring UPEC virulence-associated genes is currently limited. Therefore, this study aimed to determine the phylogroups, virulence genes, and their association between PEC and UPEC from UTI patients. In this study, 330 E. coli were obtained from archived stock culture isolated from pork (PEC; n = 165) and urine of patients with UTIs (UPEC; n = 165) during 2014–2022. Phylogroups, UPEC- and diarrheagenic E. coli (DEC) associated virulence genes were assessed using PCR assays. The results showed that phylogroups A (50.3%), and B1 (32.1%) were commonly found among PEC whereas phylogroups B2 (41.8%), and C (25.5%) were commonly detected in the UPEC. PEC and UPEC carried similar virulence-associated genes with different percentages. The most frequent UPEC virulence-associated gene among UPEC, and PEC strains was fimH, (93.3%, and 92.1%), followed by iucC (55.2%, and 12.7%), papC (21.8%, and 4.2%), afaC (22.4%, and 0%), hlyCA (17%, and 0.6%), cnf (16.4%, and 0.6%), and sfa/focDE (8.5%, and 4.8%). Additionally, 6 of 27 UPEC virulence-associated gene patterns were found in both PEC and UPEC strains regardless of phylogroups. Furthermore, the DEC virulence-associated genes were found in only 3 strains, one from PEC harboring eae, and two from UPEC carried fimH-bfpA or afaC-CVD432 indicating hybrid strains. Cluster analysis showed a relationship between PEC and UPEC strains and demonstrated that PEC harboring UPEC virulence-associated genes in pork may be associated with UPEC in humans. Food safety and hygiene practices during pork production chain are important procedures for minimizing cross-contamination of these strains that could be transmitted to the consumers.