Bacterial biofilms have a complex and heterogeneous three-dimensional architecture that is characterized by chemically and structurally distinct microenvironments. Confocal microscopy-based pH ratiometry and fluorescence lectin-binding analysis (FLBA) are well-established methods to characterize pH developments and the carbohydrate matrix architecture of biofilms at the microscale. Here, we developed a combined analysis, pH-FLBA, to concomitantly map biofilm pH and the distribution of matrix carbohydrates in bacterial biofilms while preserving the biofilm microarchitecture. As a proof of principle, the relationship between pH and the presence of galactose- and fucose-containing matrix components was investigated in dental biofilms grown with and without sucrose. The pH response to a sucrose challenge was monitored in different areas at the biofilm base using the ratiometric pH-sensitive dye C-SNARF-4. Thereafter, the fucose- and galactose-specific fluorescently labeled lectins Aleuria aurantia lectin (AAL) and Morus nigra agglutinin G (MNA-G) were used to visualize carbohydrate matrix components in the same biofilm areas and their immediate surroundings. Sucrose during growth significantly decreased biofilm pH (P < 0.05) and increased the amounts of both MNA-G- and AAL-targeted matrix carbohydrates (P < 0.05). Moreover, it modulated the biofilm composition towards a less diverse community dominated by streptococci, as determined by 16S rRNA gene sequencing. Altogether, these results suggest that the production of galactose- and fucose-containing matrix carbohydrates is related to streptococcal metabolism and, thereby, pH profiles in dental biofilms. In conclusion, pH-FLBA using lectins with different carbohydrate specificities is a useful method to investigate the association between biofilm pH and the complex carbohydrate architecture of bacterial biofilms.IMPORTANCEBiofilm pH is a key regulating factor in several biological and biochemical processes in environmental, industrial, and medical biofilms. At the microscale, microbial biofilms are characterized by steep pH gradients and an extracellular matrix rich in carbohydrate components with diffusion-modifying properties that contribute to bacterial acid-base metabolism. Here, we propose a combined analysis of pH ratiometry and fluorescence lectin-binding analysis, pH-FLBA, to concomitantly investigate the matrix architecture and pH developments in microbial biofilms, using complex saliva-derived biofilms as an example. Spatiotemporal changes in biofilm pH are monitored non-invasively over time by pH ratiometry, while FLBA with lectins of different carbohydrate specificities allows mapping the distribution of multiple relevant matrix components in the same biofilm areas. As the biofilm structure is preserved, pH-FLBA can be used to investigate the in situ relationship between the biofilm matrix architecture and biofilm pH in complex multispecies biofilms.