Garlic, an important economic crop, provides nutrient-rich straw. When appropriately balanced with silage corn stalks, it is a high-quality forage resource. However, studies on the impact of garlic straw with silage corn stalks on Hu sheep’s digestive metabolism and rumen microbiota are scarce. In this study, different addition ratios of garlic straw and silage corn stalks were utilized for in vitro experiments. We designed six experimental groups (CON, G0, G20, G40, G60, G80, and G100) based on varying ratios of garlic straw to silage corn stalks. Rumen microbiota was analyzed through 16S rRNA sequencing. Nutrient composition analysis indicated that garlic straw’s relative feeding value (RFV) closely resembled that of silage corn stalks. After 24 h of fermentation, dry matter digestibility and in vitro gas production significantly increased, reaching peak values at a 60% addition ratio. Furthermore, volatile fatty acids (VFAs) such as acetic, propionic, and butyric acid exhibited elevated contents, with the highest yields observed at 60% inclusion. At the genus level, Prevotella, Rikenellaceae RC9 gut group, and Succiniclasticum were identified as the dominant bacterial groups. The gas production test showed a significant decrease in the G80 group compared to others. Microbial analysis revealed a higher abundance of Prevotella in G80 compared to G20, offering valuable insights for reducing greenhouse gas emissions from ruminant animals. Finally, this study predicted the impact of garlic straw with silage corn stalks’ addition on Hu sheep’s metabolic pathways and biological functions of the rumen microbiota. This research highlights the potential for effectively utilizing garlic straw as a feed resource for Hu sheep and proposes a rational proportion for combining garlic straw with silage corn stalks.