If rock gets hot enough as it moves deep in Earth's surface, it can eventually turn into molten rock (magma)