As magmatic gas travelling upward encounters meteoric water in an aquifer, steam is produced. Latent magmatic heat can also cause meteoric waters to ascend as a vapour phase. Extended fluid-rock interaction of this hot mixture can leach constituents out of the cooling magmatic rock and also the country rock, causing volume changes and phase transitions, reactions and thus an increase in ionic strength of the upward percolating fluid. This process also decreases the fluid's pH. Cooling can cause phase separation and mineral deposition, accompanied by a shift toward more reducing conditions. At the surface expression of such hydrothermal systems, low-temperature volcanic gases (<400 °C) are either emanating as steam-gas mixtures or in dissolved form in hot springs. At the ocean floor, such hot supersaturated hydrothermal fluids form gigantic chimney structures called black smokers, at the point of emission into the cold seawater.
Over geological time, this process of hydrothermal leaching, alteration, and/or redeposition of minerals in the country rock is an effective process of concentration that generates certain types of economically valuable ore deposits.