Just like there is a water cycle, there is also a rock cycle. The rock cycle is a system of steps that begins with sediments and goes through a period to make magma or a type of rock. These types of stones include igneous rocks, metamorphic rocks, and sedimentary rocks. Therefore, if a rock came from sediments, then it becomes compact.
When it is compacted, then it becomes a sedimentary rock. Igneous rock could change based on heat and pressure. When the molten rock is warmed up, it could become another rock. If the metamorphic rock is melted, then it could become magma. One of the steps in the water cycle that is not in the rock cycle is condensation.