Weathering breaks down existing rocks into smaller particles called sediment. Over time, these sediments accumulate, compact, and cement together to form sedimentary rocks. Igneous and metamorphic rocks are formed by heat, pressure, or cooling magma rather than surface weathering.