BackgroundThe small intestine, while serving as the main absorption organ, also possesses a unique bacterial environment and holds the critical function of conversion of primary bile acids. Bile acids are, in turn, able to regulate bacterial composition and promote the growth of bacteria that convert primary bile acids to secondary bile acids. However, in beef cattle, few studies have explored the influence of diets on jejunal bacterial communities and examined its relationships with bile acids. Here, we examined the impact of grain- and grass-based diets on jejunal and fecal bacterial communities’ composition and investigated possible association of bacterial features with bile acids.ResultsWe demonstrated that the influences of diets on intestinal bacteria can be observed in young beef cattle after weaning. A significantly higher level of microbial diversity was documented in feces of grass-fed cattle comparing to grain-fed cattle. Top 20 important genera identified with random forest analysis on fecal bacterial community can be good candidates for microbial biomarkers. Moreover, the jejunal bacteria of adult Angus beef cattle exhibited significant differences in microbial composition and metabolic potential under different diets. Global balances and bacteria signatures predictive of bile acids were identified, indicative of the potential association of bacterial features with bile acids.ConclusionsThe findings from this study provided novel insights into the relationships between jejunal bacteria and bile acids under different diets in Angus beef cattle. Our results should help us gain a better understanding of potential health benefits of grass-fed beef.