Metal ores are found near plate boundaries; magma that forms due to subduction can heat water in the ground. Hot water can dissolve minerals from one place and then carry and deposit them somewhere else, usually in fractures in rock. Some people use water heated by magma to heat homes and to generate electricity.