Introduction:In order to reveal the composition of the subsurface hydrothermal bacterial community in the zones of magmatic tectonics and their response to heat storage environments.Methods:In this study, we performed hydrochemical analysis and regional sequencing of the 16S rRNA microbial V4-V5 region in 7 Pleistocene and Lower Neogene hot water samples from the Gonghe basin.Results:Two geothermal hot spring reservoirs in the study area were found to be alkaline reducing environments with a mean temperature of 24.83°C and 69.28°C, respectively, and the major type of hydrochemistry was SO4-Cl·Na. The composition and structure of microorganisms in both types of geologic thermal storage were primarily controlled by temperature, reducing environment intensity, and hydrogeochemical processes. Only 195 ASVs were shared across different temperature environments, and the dominant bacterial genera in recent samples from temperate hot springs wereThermusandHydrogenobacter, with both genera being typical of thermophiles. The correlation analysis showed that the overall level of relative abundance of the subsurface hot spring relied on a high temperature and a slightly alkaline reducing environment. Nearly all of the top 4 species in the abundance level (53.99% of total abundance) were positively correlated with temperature and pH, whereas they were negatively correlated with ORP (oxidation–reduction potential), nitrate, and bromine ions.Discussion:In general, the composition of bacteria in the groundwater in the study area was sensitive to the response of the thermal storage environment and also showed a relationship with geochemical processes, such as gypsum dissolution, mineral oxidation, etc.