The gut microbiota plays important roles in the host’s normal function and health, including protection against colonization by pathogenic bacteria. Alterations in the gut microbial profile can potentially serve as an early diagnostic tool, as well as a therapeutic strategy against colonization by and carriage of harmful bacteria, including antibiotic-resistant pathogens. Here, we show that the microbiota of hospitalized patients demonstrated specific taxa which differed between carriers of carbapenem-resistant Enterobacteriaceae (CRE) and noncarriers. The difference in the microbiota also dictates alterations in microbiome-specific metabolic capabilities, in association with increased prevalence of systemic infection. Reintroducing specific strains and/or correction of dysbiosis with probiotics or fecal transplantation may potentially lead to colonization by bacterial taxa responsible for protection against or depletion of antibiotic-resistant pathogens.