Current microbial surveys using molecular methods provide us with critical information on the major components of natural bacterial communities. However, limited investigation has been performed on the influence of bacterial metabolism on the environment. In this study, we analyzed the pH generated by distinct bacterial communities in a cave environment. Different bacterial biofilms developing on the walls of the cave were visually distinguished by their colorations (e.g., white, yellow, and gray) and mineral depositions, and previous studies have reported on their bacterial diversity and distribution. Using pH microelectrodes, we carried out in situ measurements and were able to detect differences among these bacterial biofilms. White biofilms and carbonate depositions resulted in alkaline pH values. Gray biofilms also increased the pH although these values remained lower than in white biofilms. A combination of gray-white biofilms resulted in alkaline pH values with highest values at the white edge of the colonies. Yellow biofilms generated a slightly acid pH. These results suggest that different bacterial communities can lead to distinct effects on their environment, for instance, precipitation or dissolution of carbonates in caves. These results add information about metabolic response to current knowledge from bacterial diversity surveys, providing information on the interaction between complex bacterial communities and the geological substrate.