Magnesium oxide (MgO) is one of the most used Mg supplements in livestock. However, to avoid relying upon only one Mg source, it is important to have alternative Mg sources. Therefore, the objective of this study was to evaluate the effects of the interaction of two Mg sources with buffer use on the ruminal microbiota composition, ruminal fermentation, and nutrient digestibility in lactating dairy cows. Twenty lactating Holstein cows were blocked by parity and days in milk into five blocks with four cows each, in a 2 × 2 factorial design. Within blocks, cows were assigned to one of four treatments: 1) MgO; 2) MgO + Na sesquicarbonate (MgO+); 3) calcium-magnesium hydroxide (CaMgOH); 4) CaMgOH + Na sesquicarbonate (CaMgOH+). For 60 d, cows were individually fed a corn silage-based diet, and treatments were top-dressed. Ruminal fluid was collected via an orogastric tube, for analyses of the microbiota composition, volatile fatty acids (VFA), lactate, and ammonia nitrogen (NH3-N). The microbiota composition was analyzed using V4/16S rRNA gene sequencing, and taxonomy was assigned using the Silva database. Statistical analysis was carried out following the procedures of block design analysis, where block and cow were considered random variables. Effects of Mg source, buffer, and the interaction between Mg Source × Buffer were analyzed through orthogonal contrasts. There was no interaction effect of the two factors evaluated. There was a greater concentration of NH3-N, lactate, and butyrate in the ruminal fluid of cows fed with CaMg(OH)2, regardless of the buffer use. The increase in these fermentation intermediates/ end-products can be explained by an increase in abundance of micro-organisms of the genus Prevotella, Lactobacillus, and Butyrivibrio, which are micro-organisms mainly responsible for proteolysis, lactate-production, and butyrate-production in the rumen, respectively. Also, dietary buffer use did not affect the ruminal fermentation metabolites and pH; however, an improvement of the apparent total tract digestibility of dry matter (DM), organic matter (OM), neutral fiber detergent (NDF), and acid fiber detergent (ADF) were found for animals fed with dietary buffer. In summary, there was no interaction effect of buffer use and Mg source, whereas buffer improved total tract apparent digestibility of DM and OM through an increase in NDF and ADF digestibility and CaMg(OH)2 increased ruminal concentration of butyrate and abundance of butyrate-producing bacteria.