text: if rock gets very hot it may melt and form magma does this change take in or give out energy?   re-melting rock to join hot magma is little more mysterious than melting ice.  it takes energy to melt ice or rock.  if the constituents of the unspecified rock react chemically the question would be whether the specific reaction is endothermic (using energy) or exothermic (giving off energy).