The influence of the carbohydrate (CHO) composition of cereal cultivars on microbial ecophysiology was studied using an in vitro model of the porcine gastrointestinal tract. Ten hull-less barley cultivars, six barley cultivars with hulls, six oat cultivars, and six oat groats that differed in -glucan, nonstarch polysaccharide (NSP), and starch contents and starch type were hydrolyzed enzymatically and incubated for 72 h with pig feces. Fermentation kinetics were modeled, and microbial compositions and short-chain fatty acid (SCFA) profiles were analyzed using terminal restriction fragment length polymorphism and gas chromatography. Cluster analysis and canonical ordination revealed different effects on fermentation and microbial ecology depending on the type of CHO and cultivar. First, in cultivars of barley with hulls and oats, the cellulose and insoluble NSP contents (i) increased Ruminococcus flavefaciens-like and Clostridium xylanolyticum-like phylotypes, (ii) increased acetate production, and (iii) decreased fermentation activity. Second, in hull-less barley cultivars the -glucan, amylose, amylopectin, crude protein, and soluble NSP contents determined the microbial community composition and activity as follows: (i) the amylose contents of the hull-less barley varieties increased the butyrate production and the abundance of Clostridium butyricum-like phylotypes, (ii) the -glucan content determined the total amounts of SCFA, and (iii) the amylopectin and starch contents affected the abundance of Clostridium ramosum-like phylotypes, members of Clostridium cluster XIVa, and Bacteroides-like bacteria. Finally, the effect of CHO on proliferation of Salmonella enterica in the model was determined. Salmonella cell counts were not affected, but the relative proportion of Salmonella decreased with hull-less barley cultivars and increased with oat cultivars as revealed by quantitative PCR. Our results shed light on the complex interactions of cereal CHO with intestinal bacterial ecophysiology and the possible impact on host health.