When heated deep under ground, rocks become magma (liquid rock). Above ground, it is called lava. Sediment, the particles from rock erosion and weathering, is the basis for sedimentary rock of the future.