The largest of geologic cycles, and is linked to all the other cycles. It depends on the tectonic cycle for heat and energy, the biochemical cycle for materials, and the hydrologic cycle for water. Water is then used in the process of weathering, erosion, transportation, deposition, and lithification of sediment. The three types of rocks are igneous, sedimentary, and metamorphic rocks. Overall, the type of rock formed in the rock cycle depends on the rock's environment. The movement of water from the oceans to the atmosphere and back again. Driven by solar energy, the cycle operates by way of evaporation, precipitation, surface runoff, and subsurface flow, and water is stored in different compartments along the way (oceans, rivers, glaciers, ice caps, atmosphere, streams, groundwater, lakes).