A high-throughput microbial profiling tool based on terminal restriction fragment length polymorphism was developed to monitor the poultry gut microbiota in response to dietary manipulations. Gut microbial communities from the duodena, jejuna, ilea, and ceca of 48 birds fed either a barley control diet or barley diet supplemented with exogenous enzymes for degrading nonstarch polysaccharide were characterized by using multivariate statistical methods. Analysis of samples showed that gut microbial communities varied significantly among gut sections, except between the duodenum and jejunum. Significant diet-associated differences in gut microbial communities were detected within the ileum and cecum only. The dissimilarity in bacterial community composition between diets was 73 and 66% within the ileum and cecum, respectively. Operational taxonomic units, representing bacterial species or taxonomically related groups, contributing to diet-associated differences were identified. Several bacterial species contributed to differences between diet-related gut microbial community composition, with no individual bacterial species contributing more than 1 to 5% of the total. Using canonical analysis of principal coordinates biplots, we correlated differences in gut microbial community composition within the ileum and cecum to improved performance, as measured by apparent metabolizable energy. This is the first report that directly links differences in the composition of the gut microbial community with improved performance, which implies that the presence of specific beneficial and/or absence of specific detrimental bacterial species may contribute to the improved performance in these birds.