Flexi Says: Igneous rocks form from cooling magma. Magma that erupts onto Earth’s surface is lava. The chemical composition of the magma and the rate at which it cools determine what rock forms as the minerals cool and crystallize. Metamorphic rocks form when an existing rock is changed by heat or pressure. The minerals in the rock change but do not melt. The rock experiences these changes within the Earth.