Metasomatism can occur via the action of hydrothermal fluids from an igneous or metamorphic source. In the igneous environment, metasomatism creates skarns, greisen, and may affect hornfels in the contact metamorphic aureole adjacent to an intrusive rock mass. In the metamorphic environment, metasomatism is created by mass transfer from a volume of metamorphic rock at higher stress and temperature into a zone with lower stress and temperature, with metamorphic hydrothermal solutions acting as a solvent. This can be envisaged as the metamorphic rocks within the deep crust losing fluids and dissolved mineral components as hydrous minerals break down, with this fluid percolating up into the shallow levels of the crust to chemically change and alter these rocks.