"Rocks are formed through the rock cycle, which involves physical changes such as melting, cooling, eroding, compacting, or deforming. Sedimentary rocks are formed from pieces of other existing rock or organic material. Igneous rocks are formed from melted rock deep inside the Earth. Metamorphic rocks are formed from other rocks that are changed by heat and pressure underground. Sedimentary rocks can also form from chemical precipitation. Eroded particles of rock are transported by wind, water, and ice and deposited on dry land, on the beds of rivers and lakes, or in the seas. Over years, these pieces of rock, or sediments, are pressed together by the weight of new deposits on top of them and cement together to form rocks."