Different types of mechanical and chemical decomposition process work on the surface. As a result of these processes, the outer surface of the earth's surface is eroded. These decaying substances are known as sediments. And the rock that is formed by the accumulation of this sediment is called sedimentary rock.