In recent years, extraintestinal pathogenic Escherichia coli (ExPEC) has been found to pose a great threat to human and animal health, but its pathogenic mechanism is not fully understood yet. Capsular polysaccharide, an essential virulence factor in these bacteria, can damage the host immune system, and kpsM is a member of the gene cluster responsible for capsular polysaccharide synthesis. In this study, whole sequence alignment of the virulent strain PCN033 and the attenuated strain PCN061 revealed that kpsM exists in PCN033 but not in PCN061. To determine its function and biological characteristics, we deleted kpsM from PCN033 by homologous recombination. The results of adhesion assays, phagocytosis assays and serum bactericidal assays together with the results of colonization assays in mice indicate that the deletion of kpsM decreases the virulence of porcine ExPEC. Our findings about the biological characteristics of kpsM help to elucidate the complex pathogenic mechanism of ExPEC.