Pathogenic Enterobacter species are of increasing clinical concern due to the multidrug-resistant nature of these bacteria, including resistance to carbapenem antibiotics. Our understanding of Enterobacter virulence is limited, hindering the development of new prophylactics and therapeutics targeting infections caused by Enterobacter species. In this study, we assessed the virulence of contemporary clinical Enterobacter hormaechei isolates in a mouse model of intraperitoneal infection and used comparative genomics to identify genes promoting virulence. Through mutagenesis and complementation studies, we found two porin-encoding genes, ompC and ompD , to be required for E. hormaechei virulence. These porins imported clinically relevant carbapenems into the bacteria, and thus loss of OmpC and OmpD desensitized E. hormaechei to the antibiotics. Our genomic analyses suggest porin-related genes are frequently mutated in E. hormaechei , perhaps due to the selective pressure of antibiotic therapy during infection. Despite the importance of OmpC and OmpD during infection of immunocompetent hosts, we found the two porins to be dispensable for virulence in a neutropenic mouse model. Moreover, porin loss provided a fitness advantage during carbapenem treatment in an ex vivo human whole blood model of bacteremia. Our data provide experimental evidence of pathogenic Enterobacter species gaining antibiotic resistance via loss of porins and argue antibiotic therapy during infection of immunocompromised patients is a conducive environment for the selection of porin mutations enhancing the multidrug-resistant profile of these pathogens.