Thermal metamorphism occurs when rocks undergo changes in their mineralogy and texture due to exposure to high temperatures, typically from nearby molten rock or magma. This process alters the physical and chemical properties of the original rock without it melting, leading to the formation of new minerals and textures that reflect the conditions of heat and pressure they were subjected to.