Escherichia coli (E. coli) is closely associated with the occurrence of puerperal metritis in dairy cows. E. coli carries some the virulence and multi-drug resistant genes, which pose a serious threat to the health of postpartum cows. In this study, E. coli was isolated and identified from the uterine contents of postpartum cows with puerperal metritis in the Ningxia region of China, and its phylogenetic subgroups were determined. Meanwhile, virulence and drug resistance genes carried by E. coli and drug sensitivity were detected, and the characteristics of virulence and drug resistance genes distribution in E. coli phylogroups were further analyzed. The results showed that the isolation rate of E. coli in puerperal metritis samples was 95.2%. E. coli was mainly divided into phylogroups B2 and D, followed by groups A and B1, and was more connected to O157:H7, O169:H4, and ECC-1470 type strains. The virulence genes were mainly dominated by ompF (100%), traT (100%), fimH (97%), papC (96%), csgA (95%), Ang43 (93.9%), and ompC (93%), and the resistance genes were dominated by TEM (99%), tetA (71.7%), aac(3)II (66.7%), and cmlA (53.5%). Additionally, it was observed that the virulence and resistance gene phenotypes could be divided into two subgroups, with subgroup B2 and D having the highest distributions. Drug sensitivity tests also revealed that the E. coli was most sensitive to the fluoroquinolones enrofloxacin, followed by macrolides, aminoglycosides, tetracyclines, β-lactams, peptides and sulfonamides, and least sensitive to lincosamides. These results imply that pathogenic E. coli, which induces puerperal metritis of dairy cows in the Ningxia region of China, primarily belongs to the group B2 and D, contains multiple virulence and drug resistance genes, Moreover, E. coli has evolved resistance to several drugs including penicillin, lincomycin, cotrimoxazole, and streptomycin. It will offer specific guidelines reference for the prevention and treatment of puerperal metritis in dairy cows with E. coli infections in the Ningxia region of China.