Many researchers consider gut microbiota (trillions of microorganisms) an endogenous organ of its animal host, which confers a vast genetic diversity in providing the host with essential biological functions. Particularly, the gut microbiota regulates not only gut tissue structure but also gut health and gut functionality. This paper first summarized those common bacterial species (dominated by the Firmicutes, Bacteroidota, and Proteobacteria phyla) in swine gut and then briefly discussed their roles in swine nutrition and health, which include roles in nutrient metabolism, pathogen exclusion, and immunity modulation. Secondly, the current knowledge on how dietary nutrients and feed additives affect the gut bacterial composition and nutrient metabolism in pigs was discussed. Finally, how dietary amino acids affect the relative abundances and metabolism of bacteria in the swine gut was reviewed. Tryptophan supplementation promotes the growth of beneficial bacteria and suppresses pathogens, while arginine metabolism affects nitrogen recycling, impacting gut immune response and health. Glutamate and glutamine supplementations elevate the levels of beneficial bacteria and mitigate pathogenic ones. It was concluded that nutritional strategies to manipulate gut microbial ecosystems are useful measures to optimize gut health and gut functions. For example, providing pigs with nutrients that promote the growth of Lactobacillus and Bifidobacterium can lead to better gut health and growth performance, especially when dietary protein is limited. Further research to establish the mechanistic cause-and-effect relationships between amino acids and the dynamics of gut microbiota will allow swine producers to reap the greatest return on their feed investment.